1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# frozen_string_literal: true
module Types
module Organizations
class OrganizationType < BaseObject
graphql_name 'Organization'
authorize :read_organization
field :groups,
Types::GroupType.connection_type,
null: false,
description: 'Groups within this organization that the user has access to.',
alpha: { milestone: '16.4' },
resolver: ::Resolvers::Organizations::GroupsResolver
field :id,
GraphQL::Types::ID,
null: false,
description: 'ID of the organization.',
alpha: { milestone: '16.4' }
field :name,
GraphQL::Types::String,
null: false,
description: 'Name of the organization.',
alpha: { milestone: '16.4' }
field :organization_users,
null: false,
description: 'Users with access to the organization.',
alpha: { milestone: '16.4' },
resolver: ::Resolvers::Organizations::OrganizationUsersResolver
field :path,
GraphQL::Types::String,
null: false,
description: 'Path of the organization.',
alpha: { milestone: '16.4' }
field :web_url, GraphQL::Types::String,
null: false,
description: 'Web URL of the organization.',
alpha: { milestone: '16.6' }
end
end
end
|