Sha256: b01fb56561a51426caa517daf2bed79897449000dd1a6e13dd404a741aeb95f7
Contents?: true
Size: 246 Bytes
Versions: 2
Compression:
Stored size: 246 Bytes
Contents
# frozen_string_literal: true module Resolvers class OAuthClients < GraphQL::Schema::Resolver type [Types::OAuthClient], null: true def resolve return Osso::Models::OAuthClient.all if context[:scope] == :admin end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.2 | lib/osso/graphql/resolvers/oauth_clients.rb |
osso-0.0.3.1 | lib/osso/graphql/resolvers/oauth_clients.rb |