Miguel Oller
Miguel Oller
We should add support to import files from `.graphql` files. You could import another `.graphql` file or a `.js` file that has a `build` config for it.
v0.1.0
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...
This schema won't behave as expected. The default value for `friends` ends up being `null`. ```graphql input InsertUserInput { id: ID! name: String! friends: [ID!] = [] } ```
`build` is very useful and convenient in that it can produce any number of types. Sometimes it might be inconvenient to get a type map though. If we export the...
``` js build(` type Query { status: Boolean! } `, { status: () => true }); ``` The code above will throw an error when attempting to query `status`.
Using Flow will greatly reduce various bugs and it should be easy to implement given that GraphQL.js is written with it.
There are various problems when trying to build a schema that make the API more confusing. - Inferring a schema comes with the problem of it not being intuitive where...
It would be useful to be able to apply a transform to enum values (e.g., [camelcase](https://www.npmjs.com/package/camelcase))
The next utility after `build` should be custom GraphQL types, mostly scalars, that facilitate validation. Potential types include `GraphQLURL`, `GraphQLJSON`, `GraphQLEmail`, `GraphQLUnsignedInt`, and many more!