Skip to content

Some questions about features #39

@Yehonal

Description

@Yehonal

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:

  1. 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?

  2. 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?

  3. How can i set a middlewares in resolvers to implement security checks? I need to filter queries/mutations based on user roles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions