-
Notifications
You must be signed in to change notification settings - Fork 23
Description
This is a great project, i'm using it in conjuction to sequelize-auto to totally automate creation of graphql service from pre-existibg mysql db... but i would ask you 3 things that are makes me crazy:
-
All integer primary keys are trasformed in graphql ID scalar type. So i cannot do for example { mytable(id: 4) } since that values is not recognized. Is there a solution?
-
In sequelize i've tons of fields that are "not null" but have a default value. But the graphql schema is created with "!" (not null) so i cannot omit them when mutate/create. Is there any way to configure it in a way to avoid it when default value is present in sequelize model?
-
How can i set a middlewares in resolvers to implement security checks? I need to filter queries/mutations based on user roles.