Questions tagged [graphql-schema]

A GraphQL schema is at the center of any GraphQL server implementation and describes the functionality available to the clients which connect to it.

To make it easy to understand the capabilities of a server, GraphQL implements a human-readable schema syntax known as its Schema Definition Language, or "SDL". The SDL is used to express the types available within a schema and how those types relate to each other.

https://www.apollographql.com/docs/apollo-server/schema/schema/#targetText=A%20GraphQL%20schema%20is%20at,schema%20is%20the%20%22type%22.&targetText=Define%20which%20data%2Dfetching%20(querying,be%20executed%20by%20the%20client.

62 questions
0
votes
1 answer

Transform apollo-datasource-rest response structure to adapt to the already defined remote schema

We have remote schema already. We get Apollo datasource response by hitting the REST APIs using apollo-datasource-rest. The format of the json response does not match the schema. The task is to transform the json response to match the schema and…
PainPoints
  • 461
  • 8
  • 20
-1
votes
1 answer

GraphQL with nested schema returning null

I am trying to return a mongodb document upon a graphql query but getting null value. No error is being shown. The mongodb query works fine with mongoshell or mongoose. Here is the schema, typedef and resolver: const unionSchema = new Schema( { …
1 2 3 4
5