Sha256: 7b85954fd8816553da2d979770958b87f2bfc42e78eb018e8b7989bba0c87538
Contents?: true
Size: 343 Bytes
Versions: 2
Compression:
Stored size: 343 Bytes
Contents
# frozen_string_literal: true 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.2 | lib/osso/graphql/resolvers/enterprise_accounts.rb |
osso-0.0.3.1 | lib/osso/graphql/resolvers/enterprise_accounts.rb |