mickhansen / graphql-sequelize

GraphQL & Relay for MySQL & Postgres via Sequelize
MIT License
1.9k stars 172 forks source link

Type Query must define one or more fields. #588

Closed carloslenondavis closed 6 years ago

carloslenondavis commented 6 years ago

Hi @mickhansen, how you doing man?, i hope well,

Thanks for reading my issue description, i appreciate your time.

I'm trying with a mutation to add a record, but i have been having this issue

Query must define one or more fields.

This is [the link of my code] https://gist.github.com/clenondavis/28841cda0177160134451b723726da61)

This is a link to the screenshoot with the body request i'm sending to graphql

I do not know what i'm doing wrong, but I'll appreciate your help

Thanks,

Best regards,

mickhansen commented 6 years ago

Doesn't sound related to graphql-sequelize? Regardless your code doesnt show the file that sets up the schema root which should have a mutation and query type.