Category "graphql"

Features work, but console delivers extraneous error: "Variable "$id" of required type "ID!" was not provided."

My CRUD operations work. But many of them also generate a single, specific console error I haven't been able to track down. [GraphQL error]: Message: Variable

How to get pivot data in laravel lighthouse?

I use lighthouse package for making my graphql schema (https://github.com/nuwave/lighthouse) But how to get data from @belongsToMany relationship that is stored

Upload in GraphQL with NestJs and ValidationPipe

Im trying to make file upload in my api using this strategy: https://stephen-knutter.github.io/2020-02-07-nestjs-graphql-file-upload/. Without the ValidationPi

How can I combine permissions in `strawberry` with logical OR rather than AND?

i'm using strawberry to great success. however, there is one scenario that i would like to achieve: @strawberry.mutation( permission_classes=[ IsAuthenticated,

nestjs / graphql : default exception filter discloses too much sensitive data

The docs at https://docs.nestjs.com/graphql/other-features#exception-filters only says : Nest standard exception filters are compatible with GraphQL applicatio

Error: Expected undefined to be a GraphQL schema

I am getting an error which says " Error: Expected undefined to be a GraphQL schema." Please check what issue is this when I move to localhost:3000/graphiql it

Resolve Same Entity in Different Services

I have use-case where same entity type needs to resolved in multiple service, for example Service A has type Post type Post{ id: ID! title: String } Ser

createReadStream is not present in uploaded image

I am using node v14.17.0,"apollo-server-express": "^2.25.0", "graphql-upload": "^12.0.0" I am trying to upload an image but i dont get createReadStream from the

Setting Apollo client header dynamically is not working

I am trying to set the header of Apollo client dynamically according to official doc, but I am getting an error: TypeError: (0 , _apollo.default) is not a

How to refresh JWT token using Apollo and GraphQL

So we're creating a React-Native app using Apollo and GraphQL. I'm using JWT based authentication(when user logs in both an activeToken and refreshToken is crea

how to hot reload federation gateway in NestJS

Problem In a federated nest app, a gateway collects all the schemas from other services and form a complete graph. The question is, how to re-run the schema col

AWS Lamda Error: Parsing error: Unexpected token client

First-time Lambda user I'm trying to get an IOT device payload from IOT Core to a GraphQL endpoint by using an 'Act' with a Lambda function on IOT Core. I fou

I don't understand the GraphQL N+1 problem

I found this example of the GraphQL N+1 problem: Query # getting the top 100 reviews { top100Reviews { body author { name } } } Schema

How to redirect in Nuxtjs when the return query of Graphql is empty

I'm very new to Nuxtjs and javascript world. The Nuxtjs project I'm working on required fetching data from Backend (Strapi) using Graphql. The goal is to make a

I can't figure where is the problem with my graphql request

I'm getting bad request code every time i try to send data query in graphql, and I can't figure if the problem from the resolver or from the input, below is th

How to render svg files with Gatsby Image?

Currently in my project I have a folder with all my svg files, the query to get them from graphql is as follows: query AssetsPhotos { allFile(filter: {extensi

res.session undefined graphql apollo-server-express

I am having trouble with sessions. For some reason, the req.session is undefined even though I'm using the session middleware. I was trying to use redis but I c

How to process 301 redirects with Nuxt ServerMiddleware and Apollo GraphQL

I am currently building a Vue / Nuxt app coupled with a modified Saleor installation to sell products online. As we are migrating from an existing system we ne

'\' character is getting added when executing in graphql

Not able to figure out how i can get rid of '' character. I have tried few things but it didnt work out for me. I think postgressql changes json string like tha

Ambiguos "Error: NEXUS__UNKNOWN__TYPE was already defined and imported as a type" error in nexus graphql

I'm getting the following error when using nexus to define a graphql schema with apollo-server. Error: NEXUS__UNKNOWN__TYPE was already defined and imported as