Sha256: 92f666ce0a1312e5f7070e3539b5a9504af3670f1cb0f6a86cb39403c30de656

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module Osso
  module GraphQL
    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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
osso-0.0.3.8 lib/osso/graphql/resolvers/oauth_clients.rb
osso-0.0.3.7 lib/osso/graphql/resolvers/oauth_clients.rb
osso-0.0.3.6 lib/osso/graphql/resolvers/oauth_clients.rb