Questions tagged [express-graphql]

GraphQL HTTP Server Middleware

Create a GraphQL HTTP server with any HTTP web framework that supports connect styled middleware, including Connect itself, Express and Restify.

310 questions
-1
votes
1 answer

Unable to implement a union in GraphQL

I've been reading multiple articles in regards to handling errors especially https://blog.logrocket.com/handling-graphql-errors-like-a-champ-with-unions-and-interfaces/. Although, I'm unable to understand why I'm unable to use a union within my code…
Yama
  • 261
  • 4
  • 16
-1
votes
1 answer

run mutation to store new user's post return Error: Variable '$data' expected value of type

im using graphql-yoga and prisma i made user and post datamodel. a user can have many posts i did like below. now according the addPost mutation i want to add new post that is related to current user. but graphql server return the following…
devmrh
  • 1,063
  • 3
  • 11
  • 33
-1
votes
1 answer

Apollo-GraphQL field type for object with dynamic keys from input type

Is there a way in apollo-graphql to define name of the field from values passed in input? Something like below, how to define key[i] here? type response{ key[0] : { field1 : String, field2 : String } where input…
user837593
  • 285
  • 3
  • 21
-1
votes
1 answer

How to pass state value to Graphql Query

I am new in Graphql and React. I need help. I tried get query from user like GraphiQL. I want get query from user and return result. I made a query. If I write query, it works but otherwise I am getting error. My code block as below like and works…
Aslı
  • 85
  • 1
  • 1
  • 9
-1
votes
1 answer

Graphql API response return unexpeted data

i am trying to get hotels review from expedia.com using graphql API call, i have graphql query and its variable when i trying with postman its returning proper result but when i trying with cURL php its nothing return here is my…
Trushar Narodia
  • 2,185
  • 2
  • 9
  • 15
-1
votes
1 answer

How to NuxtJS Apollo with NestJS GraphQL

I am trying to connect my NuxtJS app (@nuxtjs/apollo) with my NestJS app (@nestjs/graphql), which should work only as a GraphQL server. I can not figure out the apollo entry point. I get always a 404, which is right because I do not know how. Here…
Toni PRI
  • 9
  • 4
-1
votes
1 answer

GraphQL type 'Object'?

I have a MongoDB mongoose schema like this: const playerSchema = Schema({ conditions: { type : Object }, date: String }) With a collection like this: { _id: 5cee935cb56d5f794b452d78, conditions: …
kurtko
  • 1,306
  • 3
  • 18
  • 41
-1
votes
1 answer

Cannot find module 'loadash'

I am getting the following error on executing command: npm start Cannot find module 'loadash' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at…
santosh kumar patro
  • 5,491
  • 12
  • 48
  • 105
-2
votes
1 answer

serverless vs serverfull in express-graphql?

I am introducing my self to serverless and stumbled upon this: https://github.com/serverless-components/express and can't seem to understand what's difference with serverfull deployed to heroku? see i have this code in serverless: app.use( …
gpbaculio
  • 3,649
  • 7
  • 31
  • 67
-2
votes
1 answer

Limiting or filtering a graphql query using apollo-express

I am new to graphql. I am building a react site with graphql on the backend. I am trying to figure out how to limit the number of objects (or items) returned by the resolver. Documentation is very scarce and i did not see clear examples for…
1 2 3
20
21