Closed
Description
The official graphql-js document refers that GraphQLNonNull is a class so if I want to use it I have to instantiate it and then pass a valid graphql type to it
But when I do that the IDE that I use (WebStorm) show me a warning about that:
Interface can not be instantiated
However, the warning disappears when I use it without instantiating it (without writing new
keyword before it)
This problem is also happening with GraphQLList
Metadata
Metadata
Assignees
Labels
No labels