Sha256: 19ce060b8230d783e12259aa6ff9885ce6ae1b3c4b70b01f40f337017393166d
Contents?: true
Size: 420 Bytes
Versions: 6
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module Osso module GraphQL module Resolvers class EnterpriseAccounts < ::GraphQL::Schema::Resolver type [Types::EnterpriseAccount], null: true def resolve return Osso::Models::EnterpriseAccount.all if context[:scope] == :admin Array(Osso::Models::EnterpriseAccount.find_by(domain: context[:scope])) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems