graphql-js
graphql-js copied to clipboard
A reference implementation of GraphQL for JavaScript
# What is happening A non null error is reported for a field that is not null, e.g. `Cannot return null for non-nullable field Account.id.` # What is really happening...
## Currently graphql.js expects `type` option to be an instance of GraphQLType (`GraphQLInputObjectType`, `GraphQLObjectType`, etc). Example: ```js const AnotherType = new GraphQLObjectType({ ... }) const Type = new GraphQLObjectType({ name:...
With SDL [officially](https://github.com/graphql/graphql-spec/pull/90) part of the specification, would it be worthwhile to provide a way to build a build a fully-featured schema from a Document AST? Currently, schemas built using...
Hi. Seems that there is no way to handle custom directives. This issue was created at @IvanGoncharov's [request](https://github.com/graphql/graphql-js/issues/41#issuecomment-490044071). I use [graphql-faker](https://github.com/APIs-guru/graphql-faker) to define schemas with fake data. Frontend developers feel...
It's possible to add a new field on info with the directives of that field? ### Reason: The main reason for this is that using a `fieldResolver` it'll be possible...
Hi, We have a rather large complex object as an input. A single request with hundreds of type errors in the input took 9 seconds in `graphql.execute`. The majority of...
I noticed that the `subscribe` function does not work properly when it is used with an asynchronous field resolver function. Also, there is no unit test for this case. This...
graphql-js currently considers the following bogus operation valid against the given schema: ```graphql # schema: type Query { f: String } # operation: mutation { bogus } ``` In particular,...
Currently, if I understand the flow correctly, to skip schema validation during an execute call, one must create a schema with the `assumeValid` option (as opposed to an explicit execute...
I originally raised this in [Apollo Server](https://github.com/apollographql/apollo-server/issues/5630) and was told that it's actually implemented here. Suppose I have the following schema: ``` interface Node { id: ID! } interface Product...