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
0
votes
1 answer

Apollo-Engine HTTPS

Is there a way, that engine is listening for nodes HTTPS-Server? I only found: engine.listen({ port: 3000, httpServer: server, }); in the documentation. When I want to send some queries, I get an ERR_SSL_PROTOCOL_ERROR.
Marcel Rösler
  • 181
  • 3
  • 14
0
votes
1 answer

GraphQL and graphql-sequelize-schema-generator

I've build one small code using graphql, nodejs, express and sequelize (with mysql) but I'm can't find the magic of graphql yet. I'd create my models using sequelize-cli (using sequelize model:create etc.) and I'd generating dynamically my schemas…
f4root
  • 475
  • 1
  • 4
  • 15
0
votes
2 answers

GraphQL CORS No 'Access-Control-Allow-Origin' header

When trying to make a GraphQL request I get the following error. I am running an express server on port 3002. I am also running express-graphql on the express server with the "/graphql" endpoint. I am using the apollo-client from a react app. I…
Kiril
  • 1
  • 1
  • 1
  • 2
0
votes
1 answer

apollo-android does not provide variables in request

I used apollo-server-express to set up a GraphQL server with the following schema: input IGetUser { email: String ID: String UserID: Int! } interface Entity { createdAt: String updatedAt: String } schema { query: Query } type…
0
votes
1 answer

How can I know what all clients have subscription to my graphql data?

I need to know what all clients are watching what type of data in my subscription server. How can I do that?
0
votes
1 answer

GraphQL returning null data from axios

I am writing a GraphQL server in Node.js and Express. I have a JSON file of data and so I am using Axios to query data from that JSON file and pass it to GraphQL query, const RootQuery = new GraphQLObjectType({ name:'RootQueryType', fields: { …
vardos
  • 334
  • 3
  • 13
0
votes
1 answer

How can GraphQL enable an ID based query at sub fields level?

If an existing service supporting the following GraphQL queries respectively: query to a person's bank account: query { balance(id: "1") { checking saving } } result { "data": { "balance": { "checking": "800", …
chen
  • 4,302
  • 6
  • 41
  • 70
0
votes
1 answer

How to fetch query in graphql?

I am learning graphql. I stuck in fetching api info. My schema is: const particularUser = new GraphQLObjectType({ name: "particularUser", description: "particular user field for person", fields: () => ({ "id": {type:…
user8934737
0
votes
0 answers

Need to define Input type in graphql. What if we have 10 objects under one another like tree, then how we make it?

{ indexName: String, documentName: String, 'queryString': { "query": { "bool": { "should": [{ "bool": { "must": [{ …
Sanjay Verma
  • 397
  • 3
  • 3
0
votes
1 answer

GraphQL resolver middleware for auth check

I have a GraphQL API with mixed public and private queries and mutation. I'm looking for a way to check whether an operation requires the user to be authenticated and also a permission checker, so that the user can only modify his own data. I…
Norbert
  • 2,741
  • 8
  • 56
  • 111
0
votes
1 answer

Many to Many graphql schema error

I'm new with GrpahQL and I'm trying to simulate Many to Many relationship between Users and Groups. I have the followinf types defined in my schema: // UserType.js const { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLID } =…
0
votes
1 answer

graphql-JS Express cannot resolve a field

When I execute the below code in node server. I see an error that graphql-JS cannot resolve the field "product.productTax." Using graphql-express, visual studio code, I was trying to exactly mimic the following code from…
0
votes
1 answer

Graphql nested query is extremely slow

When our project was based in REST, there was a response time of 200 ms ~ When changed the project be in GraphQL. Because of each node trying to resolve, and after the resolve, their sub-entity is resolving too. cause to a extremely high latency,…
Tal Gvili
  • 299
  • 1
  • 4
  • 15
0
votes
2 answers

GraphQL. How to write resolver

I just started to get into GraphQL. I am using GraphQL.js and express. Right now I am trying to build a simple example using a hardcoded JSON as the data in my javascript file. I then want to use express middleware to listen to HTTP requests via…
Patrick Seume
  • 63
  • 1
  • 8
0
votes
1 answer

Is it possible to get a human readable, nested JSON representation of a GraphQL schema in JavaScript?

I am trying to get an object representation of our graph without writing something custom to parse the output of the introspectionQuery. Ideally this would be a JSON object that had keys of the type name and their type as the value in the shape of…
Jazzy
  • 6,029
  • 11
  • 50
  • 74
1 2 3
25
26