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

Expose graphql-sequelize hooks to modify findOptions #59

Open
jjcollinge opened this issue Dec 1, 2021 · 1 comment
Open

Expose graphql-sequelize hooks to modify findOptions #59

jjcollinge opened this issue Dec 1, 2021 · 1 comment

Comments

@jjcollinge
Copy link
Contributor

Currently I'm trying to use a graphcraft model hook to apply an additional operation to the WHERE clause of a fetch. However, because the additional operation needs to be expressed as a Sequelize Literal query it gets mangled in the argsToFindOptions function of graphql-sequelize which stops it working. Would you be open to me adding a way to provide hooks that are directly added as graphql-sequelize hooks rather than invoked beforehand so that I can modify the findOptions directly.

@alirizwan
Copy link
Collaborator

Of course, please go ahead and raise a PR, will review it as soon as it's in.

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

2 participants