Top "Graphql-js" questions

The JavaScript reference implementation for GraphQL, a query language created by Facebook for describing data requirements on complex application data models.

Add custom header to apollo client polling request

I am using the apollo-client library to query data from my Graphql server. Some of the queries are sent to …

javascript graphql apollo apollo-client graphql-js
How do I specify a graphql type that takes multiple types?

I want to create a graphql type that can return either an Array of Integers or String. I've already tried …

graphql graphql-js
GraphQL Blackbox / "Any" type?

Is it possible to specify that a field in GraphQL should be a blackbox, similar to how Flow has an "…

javascript graphql graphql-js
GraphQL mutation without sub section

I want to send graphql mutation request without sub section mutation _ { updateCurrentUser(fullName: "Syava", email: "[email protected]") } and I …

graphql graphql-js
GraphQL: Non-nullable array/list

I'm learning GraphQL now and while walking through tutorial I met behavior that I can't understand. Let's say we have …

javascript graphql graphql-js apollo express-graphql
How to get requested fields inside GraphQL resolver?

I am using graphql-tools. After receiving a GraphQL query, I execute a search using ElasticSearch and return the data. However, …

graphql graphql-js
Unexpected <EOF> while using graphql

Getting EOF error every time at same line, changed code many times and even degraded to previous versions of graphql …

graphql-js express-graphql
GraphQL.js - timestamp scalar type?

I am building a GraphQL schema programmatically and in need of a Timestamp scalar type; a Unix Epoch timestamp scalar …

javascript schema graphql graphql-js scalar
When to use GraphQLID instead of GraphQLInt?

It is not clear when to use GraphQLID instead of GraphQLInt. Consider the following schema: type User { id: Int! firstName: …

graphql graphql-js