-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.1.0 #12
base: master
Are you sure you want to change the base?
v0.1.0 #12
Conversation
I accidentally closed the PR by force pushing the branch after removing all commits. |
Also fixes any linting errors that game up with the new configs as well as adds a .eslintrc.js file to the __tests__ folder
I'm interested in this, excuse my naivety but how does this differ to using makeExecutableSchema from apollo? |
@jakelacey2012, great question! The main difference from Apollo's
Where your schema definition lives in the Anyway, in summary, the goal is to let you build GraphQL.js types (not just schema) in a more terse way. |
We're going to start to implement the changes required to release
v0.1.0
so I'm opening this PR to keep track of the progress.Goals
With
v0.1.0
we plan to make the first official release ofgraphql-utilities
. Here are the goals of this release:@deprecated
directive and not the config object)Features
The main features to be supported are:
GraphQLSchema
. The schema will be inferred if the default root types are named appropriately as required by the spec.GraphQLScalar
. It will be possible to build a new scalar using a previousGraphQLScalar
as a starting point (this is currently implemented).GraphQLObject
. It will be possible to shortcut field resolve functions to minimize boilerplate (this is currently implemented).GraphQLInterface
. It will share the similar resolve shortcut asGraphQLObject
(this is currently implemented).GraphQLUnion
.GraphQLEnum
.By default, it will use the field names as their values. It will also allow to pass a function to map field names to values.GraphQLInputObject
.GraphQLDirective
.API
The API will expose the following functions:
buildSchema
buildType
buildDirective
build
extend
buildSchema
,buildType
,buildDirective
, andextend
will all return GraphQL.js objects.build
will return a map of these objects with their names as keys. For schema (which don't have a name), the key__schema
will be used due to it being an invalid GraphQL name and it already being used for GraphQL introspection.To Do
This PR resolves #2, #3, #4, #5, #6, #7, #8, #10 and #13.