Permissions on Input Types
See original GitHub issueA use case I’m interested in is putting permissions on input types and individual fields of input types. This would simplify mutation permissions because you could use a generic mutation like updateUser
but limit access to modifying certain fields of User
.
Is this supported or possible to add? I’d be happy to contribute if interested.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:15
Top Results From Across the Web
Permissions on Input Types · Issue #113 · dimatill/graphql-shield
A use case I'm interested in is putting permissions on input types and individual fields of input types. This would simplify mutation ...
Read more >The HTML5 input types - Learn web development | MDN
Objective: To understand the newer input type values available to create native form controls, and how to implement them using HTML. Note: Most ......
Read more >Permissions on Android - Android Developers
Overview · Standalone apps · Authentication · Request permissions · Detect location ... Kernel invocation functions and types · Input/output functions ...
Read more >Mobile browser 'Files and media' permission status
I have a simple input for files (especially images) in a page. <input type='file' accept='image/*'/>.
Read more >Permission to edit a particular text field by a specific user
I have a form in MS Access where two text fields are linked to a table. I want User1 to allow to input/edit...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll do some digging this week.
Hello, I’m just tackling this issue in my project and I thought I will present my progress for inspiration.
I would be glad for any pointers how to improve it. Also - I have literally no idea how this construct affect performance and caching…
So my idea is to treat each input field permissions as separate rule and join them with
and()
. Here’s example (using ramda a bit, hope it’s still readable)If you don’t mind wall of code - here’s some real example - I’m forwarding a lot’s of resolvers to Prisma, but I need to check input arguments for connections validity. Here I validate if some target user is a member of the same 'workspace` as user. It’s one-to-many case, for one-to-one I will need to use slightly modified rule.
What y’all think? 😃
// EDIT Btw. I did not tackle how to nicely use logic rules on fields yet without rewiring them