mooseql
mooseql copied to clipboard
Generate GraphQL Schema from Mongoose model
Currently, we can't see or search the schema in the 'Documentation Explorer' sidebar in graphiQL
The array of objects (like `books` in below) cause the error `TypeError: Cannot read property 'ref' of undefined` ``` javascript const userSchema = new Schema({ name: { first: { type:...
When writing custom query, there is no need to add new GraphQLObjectType, only the fields should be passed in. const schema = mooseql([Category], { query: { field1, field2 } })...