Created
April 24, 2020 15:16
-
-
Save msroot/223779212da268c98b2c33dd2eed1e6b to your computer and use it in GitHub Desktop.
This file contains 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
module Resolvers | |
class UsersResolver < Resolvers::BaseSearchResolver | |
type Types::UserType.connection_type, null: false | |
scope { context[:current_user].admin? ? User.all : User.none } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment