What does the "operation name" reference?

I'm learning about GraphQL and I'm very interested in the operation name the part of the query that comes after the query or mutation (depending on the root query type). I found a couple of code...

React relay disk cache

I've got react native application with GraphQL API where is usage react-relay library. And I need to implement disk cache to the application, I see that request are caching already in runtime, but...

How to send binary data back to client using GraphQL

I have a GraphQL server, hosted on express. I want to return images to the client by sending back nodejs buffer objects. How can i config graphql server, to return bytes, instead of json? I don't...

Return only non-null values from GraphQLList object

My sampleJSON - { "entries": [ { "fields":{ "title":"My test title" } }, { "fields":{ "description":"My test description" } } ...

Display more than 100 entries through GraphQL API

I have tired pagination using endCursor and hasNextPage in github grpahQL API to get more than 100 data. Query I used is: query { organization(login:"XXX") { ...

How to udpate an entry in graphql using variables

I'm using GraphQL plugin with strapi cms if it matters. I cannot figure out how to update an existing query using a dynamic variable. My original mutation without using variables: mutation { ...

Return file from GraphQL resolve

I am currently working on an application with the current tech stack: Backend: Mongoose Express Apollo GraphQL Frontend: Vuejs Apollo GraphQL I have succeeded in uploading files to the...

Using eslint with typescript - Unable to resolve path to module

I have this import in my file app.spec.ts: import app from './app'; Which causes this Typescript error 2:17 error Unable to resolve path to module './app' import/no-unresolved ./app.ts does...

lodash debounce in React functional component not working

I have a functional component built around the React Table component that uses the Apollo GraphQL client for server-side pagination and searching. I am trying to implement debouncing for the...

GraphQL - Apollo Client without using hooks?

I am attempting to use the Apollo GraphQL Client for React Native. However, in some parts of my app I need to do a mutation on the GraphQL data, in such a way that the interface should not be...

Failed to load plugin 'import' declared in '... » eslint-config-standard': Cannot find module 'eslint-plugin-import'

I've been trying to use ESLint along with Standard and I haven't been able to get it to work. I've tried setting it up through eslint --init, uninstalling eslint globally and having all the...

How can i consume a graphql api with ASP .NET Framework 4.6

I have a app in ASP .NET Framework 4.6 I want to consume a graphql in the best way, adding some library or something method. in effect to have another alternative, like doing a POST request is...

Cypress does not intercept GraphQL API calls

I am trying to intercept a graphql mutation to access its response. Cypress doesn't notice the request and cy.wait() times out. test describe('/profile', () => { beforeEach(() => { ...

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 created), and want to implement a...

Is there any way to upload files via postman into a GraphQL API?

Currently I'm using Altair to upload files (in my case it's just for images) to my GraphQL API. However, all my other routes are stored in postman and it'd be nice if I could use just one...

Gatsby keeps complaining Cannot query field "fields" on type "MarkdownRemark" when I have allMarkdownRemark

I am trying to configure my Gatsby project like this starter https://github.com/gatsbyjs/gatsby-starter-blog In my gatsby-node.js I have const path = require(`path`) const { createFilePath } =...

How to add @vue/apollo-composable to Quasar Frramework

We're trying to add a boot file to Quasar Framwework to be able to use @vue/apollo-composable with the Vue composition API. This tutorial explains how that is done for the old apollo-client and...

Dgraph always shows'Connection lost with alpha: 7080' error

I now use docker-compose to start Dgraph, but it always fails to start. The contents of docker-compose.yml are as follows: # This Docker Compose file can be used to quickly bootup Dgraph Zero #...

NestJs GraphQL playground access

I can't seem to access the GraphQL Playground using NestJS. I'm exploring the documentation and have followed this https://docs.nestjs.com/graphql/quick-start up to the Resolvers section to...

Django GraphQL JWT: tokenAuth mutation returns "str object has no attribute decode"

Currently I'm running a basic example of django-graphqljwt from the documentation page. https://django-graphql-jwt.domake.io/en/latest/quickstart.html import graphene import graphql_jwt class...

Unable to infer GraphQL type from TypeScript reflection system. You need to provide explicit type for 'id' of 'Address' class

import { ObjectType, ID, Int, Field } from 'type-graphql'; @ObjectType() export default class Address { @Field(type => ID) id: String; @Field() type: string; @Field() title:...

How to manually set a custom header in react apollo-client graphql?

I want to intercept all requests via apollo client graphql and set a custom header, following the https://www.apollographql.com/docs/react/networking/basic-http-networking/ const client = new...

In Gatsby Node how to render a yml file's first item's entry for a parent path?

Trying to render first items entry when a parent path is selected I'm having an issue figuring out how in gatsby-node.js to do this after reading: Creating Slugs for Pages Programmatically create...

How to convert Graphql query to a python dictionary?

I have this query which I got from a monday.com website. I am trying to get the column values for the respected board and trying to put those values into a python dictionary so that I can iterate...

typeorm geometry type Undefined type error

everyone. I am creating a project that uses geometry data using postgresql postgis this time. So I want to declare geometry in the column and use it, but there's an error. Could you tell me why...

Get headers with executeOperation on Apollo Server (apollo-server) for integrations tests

Since the deprecation of apollo-server-testing I am using the new way of doing integration tests with apollo-server (included in apollo-server 2.25.0). From the mutation *signin* I set my refresh...

How to clear/delete cache in NextJs?

I have a product page at /products/[slug].js and I use Incremental Static Generation for a wordpress/graphql site: export async function getStaticProps(context) { const {params: { slug }} =...

Apollo - multiple graphql subscriptions from child components in Angular app

The general advice (in Apollo documentation) is to create small, focused queries inside child components. So we have several such queries and they are all "live" queries where we listen for value...

NestJS - Expected undefined to be a GraphQL schema

I am trying to setup a very small GraphQL API using NestJS 8. I installed all required redepndencies from the documentation, but when I start the server, I get this error: [Nest] 22727 -...

using validation pipe in nestjs gives me an classTransformer.plainToclass is not a function error

i am using nestjs/graphql, and i made a dto for a graphql mutation where i used class-validator options like @IsString() and @IsBoolean(). for this i installed class-validator and...