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.

386 questions
-1
votes
1 answer

How to enable explorer tab and add authorization prefix in graphiql playground?

How to add (ex. "Authorization" : null ) prefix in graphiql playground How to enable explorer tab to get available query and mutations
Digen
  • 67
  • 9
-1
votes
1 answer

GraphQLObjectType is not a constructor

I'm trying to follow a graphql tutorial, even thoughg I followed it and double checked I keep getting the above error and I have no idea why dont you really hate when the bot asks you to type more, its mostly code for a reason I dont have a clue and…
Whisky-Toad
  • 125
  • 1
  • 6
-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
  • 401
  • 1
  • 8
  • 22
-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,171
  • 4
  • 19
  • 46
-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
  • 337
  • 1
  • 5
  • 25
-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ı
  • 105
  • 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
  • 3,511
  • 2
  • 11
  • 17
-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
  • 11
  • 4
-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
  • 7,231
  • 22
  • 71
  • 143
-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
  • 5,693
  • 13
  • 60
  • 102
-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
25
26