Created
May 15, 2018 06:14
-
-
Save JakeDawkins/c4ccba52173c5d1eac35e128a06566be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| users: (root, args, context) => { | |
| if (!context.user || !context.user.roles.includes('admin')) return null; | |
| return context.models.User.getAll(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment