Skip to content
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

Add a query example #3

Open
jean343 opened this issue Oct 18, 2016 · 0 comments
Open

Add a query example #3

jean343 opened this issue Oct 18, 2016 · 0 comments

Comments

@jean343
Copy link

jean343 commented Oct 18, 2016

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
}
})

Could you add an example in the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant