express-graphql Questions

1

Solved

I am making a GraphQL API where I would be able to retrieve a car object by its id or retrieve all the cars when no parameter is provided. Using the code below, I am successfully able to retrieve...
Radius asked 12/10, 2018 at 5:28

1

Solved

In an express-graphql app, I have a userLogin resolver like so: const userLogin = async ({ id, password }), context, info) => { if (!id) { throw new Error('No id provided.') } if (!passw...
Helles asked 27/9, 2018 at 7:42

1

Solved

I am currently trying to resolve a simple recipe list that has a reference to ingredients. The data layout looks like this: type Ingredient { name: String! amount: Int! unit: Unit! recipe: Re...
Mimosaceous asked 26/2, 2018 at 9:14

1

I am using remote schema stitching on my middlware server. I am able to get the schema remotely on middleware server, defined my route like this on middleware server. app.use('/graphql', graphqlHT...
Modulate asked 22/12, 2017 at 7:19

1

Just updated to 'graphql-server-express' version 1.3.0 and now I am getting this error when running any mutations: POST body missing. Did you forget use body-parser middleware? When initializing...
Katinka asked 18/12, 2017 at 3:5

1

Solved

I have an Express-GraphQL API with a query and a mutation which works in GraphiQL, unit tests of query works, but a unit test of mutation returns a 405 error. my GraphQL schema is as follows: type...
Bryozoan asked 22/10, 2017 at 9:6

1

Solved

I'm learning GraphQL now and while walking through tutorial I met behavior that I can't understand. Let's say we have defined type in schema: type Link { id: ID! url: String! description: Stri...
Sclater asked 16/10, 2017 at 12:36

© 2022 - 2024 — McMap. All rights reserved.