-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: Allow skipping suggestions #4214
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
Conversation
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @JoviDeCroock, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
08a6f22
to
13a2d6d
Compare
It looks like calls to |
13a2d6d
to
70e4f4d
Compare
@yaacovCR added it for enums/scalars, just need to add tests now |
4e16ae3
to
d96813e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this has been a much-requested feature! Amazing! Left some comments in terms of some suggestions, basically I am hopeful that we can make this non-breaking in terms of function signatures, even though of course it's going in v17, so we could break things if we need to.
ac076da
to
3d46cac
Compare
Or |
I added some thoughts in #4219 |
44b356c
to
ff2087d
Compare
7d9166f
to
d6af6ea
Compare
d6af6ea
to
10475bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few questions
10475bb
to
bc0de11
Compare
9948855
to
00a01cf
Compare
Resolves #4190
Resolves #2247
Supersedes #3467
This is a best practice already in production however GraphQL JS does not provide an out of the box solution. In the community we have solutions like https://escape.tech/graphql-armor/docs/plugins/block-field-suggestions/ however in v17 it would be worth considering providing a built-in.
The recommendation here would be to do
validate(schema, doc, rules, { hideSuggestions: process.env.NODE_ENV === 'production' })