Graphql-Access arguments in child resolvers

I am using apollo-server and apollo-graphql-tools and I have following schema type TotalVehicleResponse { totalCars: Int totalTrucks: Int } type RootQuery { getTotalVehicals(color: String):...

How to manage state of react + apollo app

I'm going to use apollo js library to fetch data from graphql api, but as I can see from the docs, it's supposed to insert fetching data directly in the components via props. So my question is do...

What is the difference between makeExecutableSchema & buildClientSchema in Apollo GraphQL

I'm trying to build a mocking infrastructure for our react client. Getting confused between the two.

GraphQL dynamic query building

I have a GraphQL server which is able to serve timeseries data for a specified source (for example, sensor data). An example query to fetch the data for a sensor might be: query fetchData { ...

graphql + apollo-server-express, how to handle auth error in express authMiddleware?

I can't figure out how to handle auth error in my authMiddleware function. Here is my authMiddleware function with traditional express way error handling. const jwt =...

Apollo 2.0.0 Graphql cookie session

Can someone help me on this, My setup was as follows prior to Apollo 2.0, I had a server.js in which i used express and graphql-server-express I had a http only cookie session, when a user logs in...

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 shows the above error. Maybe i am...

How can we pass datasource and merged graphql schema and resolvers in ApolloServer from apollo-server module?

I have a situation where , I have schema and reolvers are sitting in various different files. I have imported the schema and resolver to server.js file which is responsible for creating an apollo...

Typescript styled-component error: "Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes'."

Getting a typescript error on my styled-component Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes'.ts(2559) import React from 'react' import {...

Unable to find any GraphQL type definitions for the following pointers: src/**/*.graphql

I am using the @graphql-codegen/cli tool to generate typescript types out of my graphql server. Here is my codegen.yml content: overwrite: true schema: "http://localhost:3001/graphql" documents:...

`Cannot use e "__Schema" from another module or realm.` and `Duplicate "graphql" modules` using ApolloClient

I have a React application with ApolloClient with Apollo-Link-Schema. The application works fine locally but in our staging environment (using GOCD), we get the following error: Uncaught Error:...

How do you mock an Apollo Server RESTDataSource for unit testing with Jest?

I'm trying to test a data source in my Apollo Server that based on Apollo Server's RESTDataSource (https://www.apollographql.com/docs/apollo-server/data/data-sources/#rest-data-source). I'm...

How to select a list of projects from GitLab?

I just started to learn GraphQL (and GitLab GraphQL API through their GraphiQL Browser tool). But currently I cannot achieve anything successful - I am trying to make the simplest query, to select...

How can I handle long Int with GraphQL?

As you know that GraphQL has no data type like long int. So, whenever the number is something big like 10000000000, it throws an error like this: Int cannot represent non 32-bit signed integer...

java.lang.NoSuchFieldError: graphql/schema/idl/ScalarInfo.STANDARD_SCALAR_DEFINITIONS

My application is not started because of the below issue. Please help me on this. My build.gradle file : apply plugin: 'java-library' apply plugin: 'war' apply plugin: 'eclipse' apply...

Is it possible to return spring webflux Flux<T> / Mono<T> for Graphql Queries?

I need to implement a graphql query resolver for my reactive spring app. here is my graphlq schema: type Post{ id: String! title: String } type Query { posts: [Post!]! } And my...

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...

Upgrade to Webpack 5 failing

I am attempting upgrade to Webpack 4 to Webpack 5. However when I run npm start I get this error. Funny thing is I don't use applyWebpackOptionsDefaults anywhere and after scouring the...

How to send a post requests to Graphql in python

I want to scrape this website https://www.weisse-liste-pflege.de/ if we search like berlin in the search bar and open the developer tool and in the network tab a post request is made to Graphql...

AWS amplify reduce bundle size

Describe the bug We are trying to reduce the bundle size be refactoring the aws-amplify package to it's modular components. Everything worked fine until we deleted the aws-amplify package at the...

GraphQLResolver throws "Value already present: Pojo.class"

This is the relevant bit in my GraphQL Schema: type pojo { details: detailspojo, name: String, method: String, ext_Path: String, int_Path: String, mle: String } type...

I was installing Expo-cli for running React native app but error below happened . how to fix this?

npm:the version of expo doesnot come.I will thanful if u could solve my problem npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in...

"Cant establish connection to the server" when trying to use websockets(Apollo GraphQL subscriptions) with Heroku

I've just finished up a React/Node.js/Apollo GraphQL/Postgres personal project. I've had minimal issues getting the app working on Heroku, and I'm able to make GraphQL queries and mutations...

GraphQL Mutation and Query: Cannot read property of undefined

I'm following along a tutorial and have a simple setup using express-graphql. I have a mutation to create a Friend object and a Query to return the same. Auto-complete and schema detection work...

How to store a JWT refreshToken cookie response

I'm trying to authenticate a user with JWT using GraphQL. Once I login the user I receive the token as a JSON response and a httponly cookie storing the refresh token. (Server-side is using...

Is Cypress a good choice for API Automation Testing than Rest Assured/Karate?

I have been googling about using Cypress for Automation API testing. I found below links: Example: Cypress Real World App - API Testing Docs: API Testing Blog: Add GUI to your e2e API...

Apache reverse proxy to Node - Connection refused: AH00957

I am trying to get a brand new cloud based server working with a default version of 20.04 server ubuntu working with apache and node. The node server appears to be running without issues reporting...

Spring boot graphql No graphql schema files found on classpath

I developed a backend application using mongodb, spring-boot and graphql. I am using Jetbrains IDEA IDE. Project can be run on my development machine but it can't run on another computer. Graphql...

Apollo Subscription Server returns "Must provide document."

Our firm migrated yesterday to Apollo v3 (apollo-server-express v3.4.0). Unfortunately, subscriptions return the following response: { "message": "Must provide document" } We made following...

Flutter (graphql_flutter + gql): Found this candidate, but the arguments don't match

When trying to build app (iOS), getting the following output: Removing references to graphql_flutter within the app gets rid of these errors. I've tried every single channel for Flutter and issue...