Top "Apollo-server" questions

Apollo Server is a GraphQL server for Express, Connect, Hapi and Koa, written in TypeScript

SyntaxError: Cannot use import statement outside a module

I've got an ApolloServer project that's giving me trouble, so I thought I might update it and ran into issues …

javascript node.js babeljs apollo-server
Why am I getting a "Cannot return null for non-nullable field" error when doing a mutation?

I'm trying my hand at (Apollo) GraphQL on the server side and have been having a probably silly issue. I'm …

javascript node.js express graphql apollo-server
How do I add a description to a field in "GraphQL schema language"

I have a graphql schema, a fragment of which looks like this: type User { username: String! password: String! } In graphiql, …

javascript graphql apollo-server
How do I handle deletes in react-apollo

I have a mutation like mutation deleteRecord($id: ID) { deleteRecord(id: $id) { id } } and in another location I have a …

javascript graphql apollo-server react-apollo
Why does a GraphQL query return null?

I have an graphql/apollo-server/graphql-yoga endpoint. This endpoint exposes data returned from a database (or a REST endpoint or …

graphql graphql-js apollo-server
How to create a nested resolver in apollo graphql server

Given the following apollo server graphql schema I wanted to break these down into separate modules so I don't want …

graphql apollostack apollo-server
Apollo/GraphQL field type for object with dynamic keys

Let's say my graphql server wants to fetch the following data as JSON where person3 and person5 are some id's: "…

graphql apollo apollo-server
Is it possible to define the HTTP headers for the GraphQL Playground that comes with Apollo Server?

I want to define some http headers for the GraphQL Playground, to be enabled by default and/or always. Essentially, …

apollo-server graphql-playground
How to parse GraphQL request string into an object

I am running Apollo lambda server for GraphQL. I want to intercept the GraphQL query/mutation from the POST request …

javascript node.js graphql apollo-server
Error: "user" defined in resolvers, but not in schema

I'm trying to set up my schema for Apollo Server, and I'm running into an error. What I'm trying is …

node.js graphql apollo-server