Class: Osso::GraphQL::Types::QueryType
- Inherits:
-
GraphQL::Schema::Object
- Object
- GraphQL::Schema::Object
- Osso::GraphQL::Types::QueryType
- Defined in:
- lib/osso/graphql/query.rb
Instance Method Summary collapse
- #admin_users ⇒ Object
- #app_config ⇒ Object
- #current_user ⇒ Object
- #identity_provider(id:) ⇒ Object
- #oauth_client(id:) ⇒ Object
Instance Method Details
#admin_users ⇒ Object
33 34 35 |
# File 'lib/osso/graphql/query.rb', line 33 def admin_users Osso::Models::Account.all end |
#app_config ⇒ Object
37 38 39 |
# File 'lib/osso/graphql/query.rb', line 37 def app_config Osso::Models::AppConfig.find end |
#current_user ⇒ Object
41 42 43 |
# File 'lib/osso/graphql/query.rb', line 41 def current_user context.to_h end |
#identity_provider(id:) ⇒ Object
45 46 47 |
# File 'lib/osso/graphql/query.rb', line 45 def identity_provider(id:) Osso::Models::IdentityProvider.find(id) end |
#oauth_client(id:) ⇒ Object
49 50 51 |
# File 'lib/osso/graphql/query.rb', line 49 def oauth_client(id:) Osso::Models::OauthClient.find(id) end |