Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/graphql/object/namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Represents a Namespace
| Name | Type | Description |
|------|------|-------------|
| `createdAt` | [`Time!`](../scalar/time.md) | Time when this Namespace was created |
| `currentNamespaceLicense` | [`NamespaceLicense`](../object/namespacelicense.md) | (EE only) Currently active license of the namespace |
| `id` | [`NamespaceID!`](../scalar/namespaceid.md) | Global ID of this Namespace |
| `members` | [`NamespaceMemberConnection!`](../object/namespacememberconnection.md) | Members of the namespace |
| `namespaceLicenses` | [`NamespaceLicenseConnection!`](../object/namespacelicenseconnection.md) | (EE only) Licenses of the namespace |
Expand Down
5 changes: 5 additions & 0 deletions extensions/ee/app/graphql/ee/types/namespace_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module NamespaceType
null: false,
description: '(EE only) Licenses of the namespace'

field :current_namespace_license, ::Types::NamespaceLicenseType,
null: true,
description: '(EE only) Currently active license of the namespace',
method: :current_license

expose_abilities %i[
create_namespace_license
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
createdAt
updatedAt
namespaceLicenses
currentNamespaceLicense
userAbilities
]
end
Expand Down