create valid relay schema.json

This commit is contained in:
Eric Hulburd
2016-01-31 17:18:27 -06:00
parent 2c42090cd9
commit c0efde030d
20 changed files with 90004 additions and 266 deletions

View File

@@ -1 +1,28 @@
[See necessary examples](https://drive.google.com/drive/u/0/folders/0B6Ys-9_Te2cFNktOU3VwSzA1VWs)
## Problems
1. Setting type directly on field:
```js
fields: ()=>{
username: GraphQLString
}
```
threw this error:
```sh
Unhandled rejection Error: Query.viewer field type must be Output Type but got: undefined
```
Must pass object:
```js
fields: ()=>{
username: {
type: GraphQLString
}
}
```