Open olup opened 5 years ago
Hey @olup :wave:,
Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider contributing financially.
https://opencollective.com/graphql-shield
PS.: We offer
priority
support for all financial contributors. Don't forget to addpriority
label once you start contributing :smile:
I think that's a fantastic idea. I have thought of it many times as well but eventually always dismissed it due to the lack of funding since it requires more code change than regular maintenance.
I've contributed a little to help keep this project going - I too would agree that this would be a great feature to have.
Thanks again for this project!
Thanks! This is definitely coming in the next month or so with version 8.0.
Also, thank you for your contribution, I can't wait to see you try it. 🚀😄
I don't know if it allready exist and I could find the doc or if I am asking something completely crazy. Somewhere in that spectrum.
I wonder if there was any way allready implemented to type the first argument to shield() so that it allows only existing object/fields in the rules keys. I would LOVE intellisense on vscode.
This typing should come from the schema itself or from some prisma2-generated Typescript types.
To be more specific : my schema has a
Role
type. When writing my shield's rules I would love to be able to chooseRole
from the intellisense menu. In the other hand, creating a rule on aQuery
field that does not exist in my schema would result in a red flag in the IDE, indicating that I just can't do this.Cheers !