Commit 67e3add6 authored by Evan Read's avatar Evan Read

Merge branch 'docs-cablett-graphql-headings' into 'master'

Show Graphql type descriptions

See merge request gitlab-org/gitlab!22568
parents b228fdfd 81c18638
...@@ -4,6 +4,7 @@ module Types ...@@ -4,6 +4,7 @@ module Types
module AwardEmojis module AwardEmojis
class AwardEmojiType < BaseObject class AwardEmojiType < BaseObject
graphql_name 'AwardEmoji' graphql_name 'AwardEmoji'
description 'An emoji awarded by a user.'
authorize :read_emoji authorize :read_emoji
......
...@@ -38,6 +38,9 @@ type AddAwardEmojiPayload { ...@@ -38,6 +38,9 @@ type AddAwardEmojiPayload {
errors: [String!]! errors: [String!]!
} }
"""
An emoji awarded by a user.
"""
type AwardEmoji { type AwardEmoji {
""" """
The emoji description The emoji description
...@@ -529,6 +532,9 @@ type CreateSnippetPayload { ...@@ -529,6 +532,9 @@ type CreateSnippetPayload {
snippet: Snippet snippet: Snippet
} }
"""
A single design
"""
type Design implements DesignFields & Noteable { type Design implements DesignFields & Noteable {
""" """
The diff refs for this design The diff refs for this design
...@@ -651,6 +657,9 @@ type Design implements DesignFields & Noteable { ...@@ -651,6 +657,9 @@ type Design implements DesignFields & Noteable {
): DesignVersionConnection! ): DesignVersionConnection!
} }
"""
A collection of designs.
"""
type DesignCollection { type DesignCollection {
""" """
All designs for the design collection All designs for the design collection
...@@ -979,7 +988,7 @@ type DesignVersionEdge { ...@@ -979,7 +988,7 @@ type DesignVersionEdge {
} }
""" """
Mutation event of a Design within a Version Mutation event of a design within a version
""" """
enum DesignVersionEvent { enum DesignVersionEvent {
""" """
...@@ -1403,6 +1412,9 @@ enum EntryType { ...@@ -1403,6 +1412,9 @@ enum EntryType {
tree tree
} }
"""
Represents an epic.
"""
type Epic implements Noteable { type Epic implements Noteable {
""" """
Author of the epic Author of the epic
...@@ -1761,6 +1773,9 @@ type EpicConnection { ...@@ -1761,6 +1773,9 @@ type EpicConnection {
pageInfo: PageInfo! pageInfo: PageInfo!
} }
"""
Counts of descendent epics.
"""
type EpicDescendantCount { type EpicDescendantCount {
""" """
Number of closed sub-epics Number of closed sub-epics
...@@ -1798,6 +1813,9 @@ type EpicEdge { ...@@ -1798,6 +1813,9 @@ type EpicEdge {
node: Epic node: Epic
} }
"""
Relationship between an epic and an issue
"""
type EpicIssue implements Noteable { type EpicIssue implements Noteable {
""" """
Assignees of the issue Assignees of the issue
...@@ -2246,7 +2264,7 @@ enum EpicSort { ...@@ -2246,7 +2264,7 @@ enum EpicSort {
} }
""" """
State of a GitLab epic State of an epic.
""" """
enum EpicState { enum EpicState {
all all
...@@ -2255,20 +2273,23 @@ enum EpicState { ...@@ -2255,20 +2273,23 @@ enum EpicState {
} }
""" """
State event of a GitLab Epic State event of an epic
""" """
enum EpicStateEvent { enum EpicStateEvent {
""" """
Close the Epic Close the epic
""" """
CLOSE CLOSE
""" """
Reopen the Epic Reopen the epic
""" """
REOPEN REOPEN
} }
"""
A node of an epic tree.
"""
input EpicTreeNodeFieldsInputType { input EpicTreeNodeFieldsInputType {
""" """
The id of the epic_issue or issue that the actual epic or issue is switched with The id of the epic_issue or issue that the actual epic or issue is switched with
......
...@@ -3695,7 +3695,7 @@ ...@@ -3695,7 +3695,7 @@
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "Epic", "name": "Epic",
"description": null, "description": "Represents an epic.",
"fields": [ "fields": [
{ {
"name": "author", "name": "author",
...@@ -7384,7 +7384,7 @@ ...@@ -7384,7 +7384,7 @@
{ {
"kind": "ENUM", "kind": "ENUM",
"name": "EpicState", "name": "EpicState",
"description": "State of a GitLab epic", "description": "State of an epic.",
"fields": null, "fields": null,
"inputFields": null, "inputFields": null,
"interfaces": null, "interfaces": null,
...@@ -8009,7 +8009,7 @@ ...@@ -8009,7 +8009,7 @@
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "EpicIssue", "name": "EpicIssue",
"description": null, "description": "Relationship between an epic and an issue",
"fields": [ "fields": [
{ {
"name": "assignees", "name": "assignees",
...@@ -9230,7 +9230,7 @@ ...@@ -9230,7 +9230,7 @@
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "DesignCollection", "name": "DesignCollection",
"description": null, "description": "A collection of designs.",
"fields": [ "fields": [
{ {
"name": "designs", "name": "designs",
...@@ -10346,7 +10346,7 @@ ...@@ -10346,7 +10346,7 @@
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "Design", "name": "Design",
"description": null, "description": "A single design",
"fields": [ "fields": [
{ {
"name": "diffRefs", "name": "diffRefs",
...@@ -10880,7 +10880,7 @@ ...@@ -10880,7 +10880,7 @@
{ {
"kind": "ENUM", "kind": "ENUM",
"name": "DesignVersionEvent", "name": "DesignVersionEvent",
"description": "Mutation event of a Design within a Version", "description": "Mutation event of a design within a version",
"fields": null, "fields": null,
"inputFields": null, "inputFields": null,
"interfaces": null, "interfaces": null,
...@@ -11133,7 +11133,7 @@ ...@@ -11133,7 +11133,7 @@
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "EpicDescendantCount", "name": "EpicDescendantCount",
"description": null, "description": "Counts of descendent epics.",
"fields": [ "fields": [
{ {
"name": "closedEpics", "name": "closedEpics",
...@@ -16943,7 +16943,7 @@ ...@@ -16943,7 +16943,7 @@
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "AwardEmoji", "name": "AwardEmoji",
"description": null, "description": "An emoji awarded by a user.",
"fields": [ "fields": [
{ {
"name": "description", "name": "description",
...@@ -20689,7 +20689,7 @@ ...@@ -20689,7 +20689,7 @@
{ {
"kind": "INPUT_OBJECT", "kind": "INPUT_OBJECT",
"name": "EpicTreeNodeFieldsInputType", "name": "EpicTreeNodeFieldsInputType",
"description": null, "description": "A node of an epic tree.",
"fields": null, "fields": null,
"inputFields": [ "inputFields": [
{ {
...@@ -20987,20 +20987,20 @@ ...@@ -20987,20 +20987,20 @@
{ {
"kind": "ENUM", "kind": "ENUM",
"name": "EpicStateEvent", "name": "EpicStateEvent",
"description": "State event of a GitLab Epic", "description": "State event of an epic",
"fields": null, "fields": null,
"inputFields": null, "inputFields": null,
"interfaces": null, "interfaces": null,
"enumValues": [ "enumValues": [
{ {
"name": "REOPEN", "name": "REOPEN",
"description": "Reopen the Epic", "description": "Reopen the epic",
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{ {
"name": "CLOSE", "name": "CLOSE",
"description": "Close the Epic", "description": "Close the epic",
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
} }
......
...@@ -9,10 +9,12 @@ ...@@ -9,10 +9,12 @@
This documentation is self-generated based on GitLab current GraphQL schema. This documentation is self-generated based on GitLab current GraphQL schema.
The API can be explored interactively using the [GraphiQL IDE](../index.md#graphiql). The API can be explored interactively using the [GraphiQL IDE](../index.md#graphiql).
Each table below documents a GraphQL type. Types match loosely to models, but not all
fields and methods on a model are available via GraphQL.
## Objects ## AddAwardEmojiPayload
### AddAwardEmojiPayload Autogenerated return type of AddAwardEmoji
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -20,7 +22,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -20,7 +22,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `awardEmoji` | AwardEmoji | The award emoji after mutation | | `awardEmoji` | AwardEmoji | The award emoji after mutation |
### AwardEmoji ## AwardEmoji
An emoji awarded by a user.
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -31,7 +35,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -31,7 +35,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `unicodeVersion` | String! | The unicode version for this emoji | | `unicodeVersion` | String! | The unicode version for this emoji |
| `user` | User! | The user who awarded the emoji | | `user` | User! | The user who awarded the emoji |
### Blob ## Blob
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -44,7 +48,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -44,7 +48,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `webUrl` | String | Web URL of the blob | | `webUrl` | String | Web URL of the blob |
| `lfsOid` | String | LFS ID of the blob | | `lfsOid` | String | LFS ID of the blob |
### Commit ## Commit
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -60,7 +64,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -60,7 +64,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `author` | User | Author of the commit | | `author` | User | Author of the commit |
| `latestPipeline` | Pipeline | Latest pipeline of the commit | | `latestPipeline` | Pipeline | Latest pipeline of the commit |
### CreateDiffNotePayload ## CreateDiffNotePayload
Autogenerated return type of CreateDiffNote
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -68,7 +74,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -68,7 +74,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `note` | Note | The note after mutation | | `note` | Note | The note after mutation |
### CreateEpicPayload ## CreateEpicPayload
Autogenerated return type of CreateEpic
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -76,7 +84,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -76,7 +84,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `epic` | Epic | The created epic | | `epic` | Epic | The created epic |
### CreateImageDiffNotePayload ## CreateImageDiffNotePayload
Autogenerated return type of CreateImageDiffNote
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -84,7 +94,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -84,7 +94,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `note` | Note | The note after mutation | | `note` | Note | The note after mutation |
### CreateNotePayload ## CreateNotePayload
Autogenerated return type of CreateNote
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -92,7 +104,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -92,7 +104,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `note` | Note | The note after mutation | | `note` | Note | The note after mutation |
### CreateSnippetPayload ## CreateSnippetPayload
Autogenerated return type of CreateSnippet
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -100,7 +114,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -100,7 +114,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `snippet` | Snippet | The snippet after mutation | | `snippet` | Snippet | The snippet after mutation |
### Design ## Design
A single design
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -114,14 +130,18 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -114,14 +130,18 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `event` | DesignVersionEvent! | How this design was changed in the current version | | `event` | DesignVersionEvent! | How this design was changed in the current version |
| `notesCount` | Int! | The total count of user-created notes for this design | | `notesCount` | Int! | The total count of user-created notes for this design |
### DesignCollection ## DesignCollection
A collection of designs.
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `project` | Project! | Project associated with the design collection | | `project` | Project! | Project associated with the design collection |
| `issue` | Issue! | Issue associated with the design collection | | `issue` | Issue! | Issue associated with the design collection |
### DesignManagementDeletePayload ## DesignManagementDeletePayload
Autogenerated return type of DesignManagementDelete
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -129,7 +149,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -129,7 +149,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `version` | DesignVersion | The new version in which the designs are deleted | | `version` | DesignVersion | The new version in which the designs are deleted |
### DesignManagementUploadPayload ## DesignManagementUploadPayload
Autogenerated return type of DesignManagementUpload
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -138,14 +160,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -138,14 +160,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `designs` | Design! => Array | The designs that were uploaded by the mutation | | `designs` | Design! => Array | The designs that were uploaded by the mutation |
| `skippedDesigns` | Design! => Array | Any designs that were skipped from the upload due to there being no change to their content since their last version | | `skippedDesigns` | Design! => Array | Any designs that were skipped from the upload due to there being no change to their content since their last version |
### DesignVersion ## DesignVersion
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `id` | ID! | ID of the design version | | `id` | ID! | ID of the design version |
| `sha` | ID! | SHA of the design version | | `sha` | ID! | SHA of the design version |
### DestroyNotePayload ## DestroyNotePayload
Autogenerated return type of DestroyNote
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -153,7 +177,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -153,7 +177,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `note` | Note | The note after mutation | | `note` | Note | The note after mutation |
### DestroySnippetPayload ## DestroySnippetPayload
Autogenerated return type of DestroySnippet
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -161,7 +187,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -161,7 +187,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `snippet` | Snippet | The snippet after mutation | | `snippet` | Snippet | The snippet after mutation |
### DetailedStatus ## DetailedStatus
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -174,7 +200,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -174,7 +200,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `text` | String! | Text of the pipeline status | | `text` | String! | Text of the pipeline status |
| `tooltip` | String! | Tooltip associated with the pipeline status | | `tooltip` | String! | Tooltip associated with the pipeline status |
### DiffPosition ## DiffPosition
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -190,7 +216,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -190,7 +216,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `width` | Int | Total width of the image | | `width` | Int | Total width of the image |
| `height` | Int | Total height of the image | | `height` | Int | Total height of the image |
### DiffRefs ## DiffRefs
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -198,7 +224,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -198,7 +224,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `baseSha` | String! | Merge base of the branch the comment was made on | | `baseSha` | String! | Merge base of the branch the comment was made on |
| `startSha` | String! | SHA of the branch being compared against | | `startSha` | String! | SHA of the branch being compared against |
### Discussion ## Discussion
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -206,7 +232,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -206,7 +232,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `replyId` | ID! | ID used to reply to this discussion | | `replyId` | ID! | ID used to reply to this discussion |
| `createdAt` | Time! | Timestamp of the discussion's creation | | `createdAt` | Time! | Timestamp of the discussion's creation |
### Epic ## Epic
Represents an epic.
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -242,7 +270,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -242,7 +270,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `subscribed` | Boolean! | Indicates the currently logged in user is subscribed to the epic | | `subscribed` | Boolean! | Indicates the currently logged in user is subscribed to the epic |
| `descendantCounts` | EpicDescendantCount | Number of open and closed descendant epics and issues | | `descendantCounts` | EpicDescendantCount | Number of open and closed descendant epics and issues |
### EpicDescendantCount ## EpicDescendantCount
Counts of descendent epics.
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -251,7 +281,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -251,7 +281,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `openedIssues` | Int | Number of opened epic issues | | `openedIssues` | Int | Number of opened epic issues |
| `closedIssues` | Int | Number of closed epic issues | | `closedIssues` | Int | Number of closed epic issues |
### EpicIssue ## EpicIssue
Relationship between an epic and an issue
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -289,7 +321,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -289,7 +321,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `relationPath` | String | URI path of the epic-issue relation | | `relationPath` | String | URI path of the epic-issue relation |
| `id` | ID | Global ID of the epic-issue relation | | `id` | ID | Global ID of the epic-issue relation |
### EpicPermissions ## EpicPermissions
Check permissions for the current user on an epic
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -302,7 +336,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -302,7 +336,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `createNote` | Boolean! | Indicates the user can perform `create_note` on this resource | | `createNote` | Boolean! | Indicates the user can perform `create_note` on this resource |
| `awardEmoji` | Boolean! | Indicates the user can perform `award_emoji` on this resource | | `awardEmoji` | Boolean! | Indicates the user can perform `award_emoji` on this resource |
### EpicSetSubscriptionPayload ## EpicSetSubscriptionPayload
Autogenerated return type of EpicSetSubscription
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -310,14 +346,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -310,14 +346,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `epic` | Epic | The epic after mutation | | `epic` | Epic | The epic after mutation |
### EpicTreeReorderPayload ## EpicTreeReorderPayload
Autogenerated return type of EpicTreeReorder
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `clientMutationId` | String | A unique identifier for the client performing the mutation. | | `clientMutationId` | String | A unique identifier for the client performing the mutation. |
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
### GrafanaIntegration ## GrafanaIntegration
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -328,7 +366,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -328,7 +366,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `createdAt` | Time! | Timestamp of the issue's creation | | `createdAt` | Time! | Timestamp of the issue's creation |
| `updatedAt` | Time! | Timestamp of the issue's last activity | | `updatedAt` | Time! | Timestamp of the issue's last activity |
### Group ## Group
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -351,13 +389,13 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -351,13 +389,13 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `groupTimelogsEnabled` | Boolean | Indicates if Group timelogs are enabled for namespace | | `groupTimelogsEnabled` | Boolean | Indicates if Group timelogs are enabled for namespace |
| `epic` | Epic | Find a single epic | | `epic` | Epic | Find a single epic |
### GroupPermissions ## GroupPermissions
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `readGroup` | Boolean! | Indicates the user can perform `read_group` on this resource | | `readGroup` | Boolean! | Indicates the user can perform `read_group` on this resource |
### Issue ## Issue
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -392,7 +430,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -392,7 +430,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `designs` | DesignCollection | Deprecated. Use `design_collection` | | `designs` | DesignCollection | Deprecated. Use `design_collection` |
| `designCollection` | DesignCollection | Collection of design images associated with this issue | | `designCollection` | DesignCollection | Collection of design images associated with this issue |
### IssuePermissions ## IssuePermissions
Check permissions for the current user on a issue
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -405,7 +445,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -405,7 +445,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `createDesign` | Boolean! | Indicates the user can perform `create_design` on this resource | | `createDesign` | Boolean! | Indicates the user can perform `create_design` on this resource |
| `destroyDesign` | Boolean! | Indicates the user can perform `destroy_design` on this resource | | `destroyDesign` | Boolean! | Indicates the user can perform `destroy_design` on this resource |
### IssueSetConfidentialPayload ## IssueSetConfidentialPayload
Autogenerated return type of IssueSetConfidential
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -413,7 +455,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -413,7 +455,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `issue` | Issue | The issue after mutation | | `issue` | Issue | The issue after mutation |
### IssueSetDueDatePayload ## IssueSetDueDatePayload
Autogenerated return type of IssueSetDueDate
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -421,7 +465,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -421,7 +465,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `issue` | Issue | The issue after mutation | | `issue` | Issue | The issue after mutation |
### IssueSetWeightPayload ## IssueSetWeightPayload
Autogenerated return type of IssueSetWeight
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -429,7 +475,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -429,7 +475,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `issue` | Issue | The issue after mutation | | `issue` | Issue | The issue after mutation |
### Label ## Label
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -440,7 +486,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -440,7 +486,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `color` | String! | Background color of the label | | `color` | String! | Background color of the label |
| `textColor` | String! | Text color of the label | | `textColor` | String! | Text color of the label |
### MarkAsSpamSnippetPayload ## MarkAsSpamSnippetPayload
Autogenerated return type of MarkAsSpamSnippet
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -448,7 +496,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -448,7 +496,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `snippet` | Snippet | The snippet after mutation | | `snippet` | Snippet | The snippet after mutation |
### MergeRequest ## MergeRequest
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -502,7 +550,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -502,7 +550,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `reference` | String! | Internal reference of the merge request. Returned in shortened format by default | | `reference` | String! | Internal reference of the merge request. Returned in shortened format by default |
| `taskCompletionStatus` | TaskCompletionStatus! | Completion status of tasks | | `taskCompletionStatus` | TaskCompletionStatus! | Completion status of tasks |
### MergeRequestPermissions ## MergeRequestPermissions
Check permissions for the current user on a merge request
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -515,7 +565,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -515,7 +565,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `cherryPickOnCurrentMergeRequest` | Boolean! | Indicates the user can perform `cherry_pick_on_current_merge_request` on this resource | | `cherryPickOnCurrentMergeRequest` | Boolean! | Indicates the user can perform `cherry_pick_on_current_merge_request` on this resource |
| `revertOnCurrentMergeRequest` | Boolean! | Indicates the user can perform `revert_on_current_merge_request` on this resource | | `revertOnCurrentMergeRequest` | Boolean! | Indicates the user can perform `revert_on_current_merge_request` on this resource |
### MergeRequestSetAssigneesPayload ## MergeRequestSetAssigneesPayload
Autogenerated return type of MergeRequestSetAssignees
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -523,7 +575,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -523,7 +575,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `mergeRequest` | MergeRequest | The merge request after mutation | | `mergeRequest` | MergeRequest | The merge request after mutation |
### MergeRequestSetLabelsPayload ## MergeRequestSetLabelsPayload
Autogenerated return type of MergeRequestSetLabels
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -531,7 +585,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -531,7 +585,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `mergeRequest` | MergeRequest | The merge request after mutation | | `mergeRequest` | MergeRequest | The merge request after mutation |
### MergeRequestSetLockedPayload ## MergeRequestSetLockedPayload
Autogenerated return type of MergeRequestSetLocked
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -539,7 +595,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -539,7 +595,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `mergeRequest` | MergeRequest | The merge request after mutation | | `mergeRequest` | MergeRequest | The merge request after mutation |
### MergeRequestSetMilestonePayload ## MergeRequestSetMilestonePayload
Autogenerated return type of MergeRequestSetMilestone
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -547,7 +605,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -547,7 +605,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `mergeRequest` | MergeRequest | The merge request after mutation | | `mergeRequest` | MergeRequest | The merge request after mutation |
### MergeRequestSetSubscriptionPayload ## MergeRequestSetSubscriptionPayload
Autogenerated return type of MergeRequestSetSubscription
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -555,7 +615,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -555,7 +615,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `mergeRequest` | MergeRequest | The merge request after mutation | | `mergeRequest` | MergeRequest | The merge request after mutation |
### MergeRequestSetWipPayload ## MergeRequestSetWipPayload
Autogenerated return type of MergeRequestSetWip
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -563,14 +625,14 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -563,14 +625,14 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `mergeRequest` | MergeRequest | The merge request after mutation | | `mergeRequest` | MergeRequest | The merge request after mutation |
### Metadata ## Metadata
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `version` | String! | Version | | `version` | String! | Version |
| `revision` | String! | Revision | | `revision` | String! | Revision |
### Milestone ## Milestone
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -583,7 +645,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -583,7 +645,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `createdAt` | Time! | Timestamp of milestone creation | | `createdAt` | Time! | Timestamp of milestone creation |
| `updatedAt` | Time! | Timestamp of last milestone update | | `updatedAt` | Time! | Timestamp of last milestone update |
### Namespace ## Namespace
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -599,7 +661,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -599,7 +661,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `requestAccessEnabled` | Boolean | Indicates if users can request access to namespace | | `requestAccessEnabled` | Boolean | Indicates if users can request access to namespace |
| `rootStorageStatistics` | RootStorageStatistics | Aggregated storage statistics of the namespace. Only available for root namespaces | | `rootStorageStatistics` | RootStorageStatistics | Aggregated storage statistics of the namespace. Only available for root namespaces |
### Note ## Note
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -618,7 +680,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -618,7 +680,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `resolvedAt` | Time | Timestamp of the note's resolution | | `resolvedAt` | Time | Timestamp of the note's resolution |
| `position` | DiffPosition | The position of this note on a diff | | `position` | DiffPosition | The position of this note on a diff |
### NotePermissions ## NotePermissions
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -628,7 +690,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -628,7 +690,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `resolveNote` | Boolean! | Indicates the user can perform `resolve_note` on this resource | | `resolveNote` | Boolean! | Indicates the user can perform `resolve_note` on this resource |
| `awardEmoji` | Boolean! | Indicates the user can perform `award_emoji` on this resource | | `awardEmoji` | Boolean! | Indicates the user can perform `award_emoji` on this resource |
### PageInfo ## PageInfo
Information about pagination in a connection.
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -637,7 +701,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -637,7 +701,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `startCursor` | String | When paginating backwards, the cursor to continue. | | `startCursor` | String | When paginating backwards, the cursor to continue. |
| `endCursor` | String | When paginating forwards, the cursor to continue. | | `endCursor` | String | When paginating forwards, the cursor to continue. |
### Pipeline ## Pipeline
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -656,7 +720,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -656,7 +720,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `finishedAt` | Time | Timestamp of the pipeline's completion | | `finishedAt` | Time | Timestamp of the pipeline's completion |
| `committedAt` | Time | Timestamp of the pipeline's commit | | `committedAt` | Time | Timestamp of the pipeline's commit |
### PipelinePermissions ## PipelinePermissions
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -664,7 +728,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -664,7 +728,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `adminPipeline` | Boolean! | Indicates the user can perform `admin_pipeline` on this resource | | `adminPipeline` | Boolean! | Indicates the user can perform `admin_pipeline` on this resource |
| `destroyPipeline` | Boolean! | Indicates the user can perform `destroy_pipeline` on this resource | | `destroyPipeline` | Boolean! | Indicates the user can perform `destroy_pipeline` on this resource |
### Project ## Project
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -716,7 +780,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -716,7 +780,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `serviceDeskEnabled` | Boolean | Indicates if the project has service desk enabled. | | `serviceDeskEnabled` | Boolean | Indicates if the project has service desk enabled. |
| `serviceDeskAddress` | String | E-mail address of the service desk. | | `serviceDeskAddress` | String | E-mail address of the service desk. |
### ProjectPermissions ## ProjectPermissions
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -762,7 +826,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -762,7 +826,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `createDesign` | Boolean! | Indicates the user can perform `create_design` on this resource | | `createDesign` | Boolean! | Indicates the user can perform `create_design` on this resource |
| `destroyDesign` | Boolean! | Indicates the user can perform `destroy_design` on this resource | | `destroyDesign` | Boolean! | Indicates the user can perform `destroy_design` on this resource |
### ProjectStatistics ## ProjectStatistics
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -774,7 +838,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -774,7 +838,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `packagesSize` | Int! | Packages size of the project | | `packagesSize` | Int! | Packages size of the project |
| `wikiSize` | Int | Wiki size of the project | | `wikiSize` | Int | Wiki size of the project |
### RemoveAwardEmojiPayload ## RemoveAwardEmojiPayload
Autogenerated return type of RemoveAwardEmoji
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -782,7 +848,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -782,7 +848,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `awardEmoji` | AwardEmoji | The award emoji after mutation | | `awardEmoji` | AwardEmoji | The award emoji after mutation |
### Repository ## Repository
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -791,7 +857,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -791,7 +857,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `exists` | Boolean! | Indicates a corresponding Git repository exists on disk | | `exists` | Boolean! | Indicates a corresponding Git repository exists on disk |
| `tree` | Tree | Tree of the repository | | `tree` | Tree | Tree of the repository |
### RootStorageStatistics ## RootStorageStatistics
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -802,7 +868,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -802,7 +868,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `packagesSize` | Int! | The packages size in bytes | | `packagesSize` | Int! | The packages size in bytes |
| `wikiSize` | Int! | The wiki size in bytes | | `wikiSize` | Int! | The wiki size in bytes |
### SentryDetailedError ## SentryDetailedError
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -828,14 +894,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -828,14 +894,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `firstReleaseShortVersion` | String | Release version the error was first seen | | `firstReleaseShortVersion` | String | Release version the error was first seen |
| `lastReleaseShortVersion` | String | Release version the error was last seen | | `lastReleaseShortVersion` | String | Release version the error was last seen |
### SentryErrorFrequency ## SentryErrorFrequency
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `time` | Time! | Time the error frequency stats were recorded | | `time` | Time! | Time the error frequency stats were recorded |
| `count` | Int! | Count of errors received since the previously recorded time | | `count` | Int! | Count of errors received since the previously recorded time |
### Snippet ## Snippet
Represents a snippet entry
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -854,7 +922,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -854,7 +922,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `rawUrl` | String! | Raw URL of the snippet | | `rawUrl` | String! | Raw URL of the snippet |
| `descriptionHtml` | String | The GitLab Flavored Markdown rendering of `description` | | `descriptionHtml` | String | The GitLab Flavored Markdown rendering of `description` |
### SnippetPermissions ## SnippetPermissions
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -865,7 +933,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -865,7 +933,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `adminSnippet` | Boolean! | Indicates the user can perform `admin_snippet` on this resource | | `adminSnippet` | Boolean! | Indicates the user can perform `admin_snippet` on this resource |
| `reportSnippet` | Boolean! | Indicates the user can perform `report_snippet` on this resource | | `reportSnippet` | Boolean! | Indicates the user can perform `report_snippet` on this resource |
### Submodule ## Submodule
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -878,14 +946,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -878,14 +946,16 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `webUrl` | String | Web URL for the sub-module | | `webUrl` | String | Web URL for the sub-module |
| `treeUrl` | String | Tree URL for the sub-module | | `treeUrl` | String | Tree URL for the sub-module |
### TaskCompletionStatus ## TaskCompletionStatus
Completion status of tasks
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `count` | Int! | Number of total tasks | | `count` | Int! | Number of total tasks |
| `completedCount` | Int! | Number of completed tasks | | `completedCount` | Int! | Number of completed tasks |
### Timelog ## Timelog
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -894,7 +964,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -894,7 +964,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `user` | User! | The user that logged the time | | `user` | User! | The user that logged the time |
| `issue` | Issue | The issue that logged time was added to | | `issue` | Issue | The issue that logged time was added to |
### Todo ## Todo
Representing a todo entry
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -908,7 +980,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -908,7 +980,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `state` | TodoStateEnum! | State of the todo | | `state` | TodoStateEnum! | State of the todo |
| `createdAt` | Time! | Timestamp this todo was created | | `createdAt` | Time! | Timestamp this todo was created |
### TodoMarkDonePayload ## TodoMarkDonePayload
Autogenerated return type of TodoMarkDone
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -916,7 +990,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -916,7 +990,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `todo` | Todo! | The requested todo | | `todo` | Todo! | The requested todo |
### TodoRestorePayload ## TodoRestorePayload
Autogenerated return type of TodoRestore
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -924,7 +1000,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -924,7 +1000,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `todo` | Todo! | The requested todo | | `todo` | Todo! | The requested todo |
### TodosMarkAllDonePayload ## TodosMarkAllDonePayload
Autogenerated return type of TodosMarkAllDone
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -932,7 +1010,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -932,7 +1010,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `updatedIds` | ID! => Array | Ids of the updated todos | | `updatedIds` | ID! => Array | Ids of the updated todos |
### ToggleAwardEmojiPayload ## ToggleAwardEmojiPayload
Autogenerated return type of ToggleAwardEmoji
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -941,13 +1021,15 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -941,13 +1021,15 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `awardEmoji` | AwardEmoji | The award emoji after mutation | | `awardEmoji` | AwardEmoji | The award emoji after mutation |
| `toggledOn` | Boolean! | Indicates the status of the emoji. True if the toggle awarded the emoji, and false if the toggle removed the emoji. | | `toggledOn` | Boolean! | Indicates the status of the emoji. True if the toggle awarded the emoji, and false if the toggle removed the emoji. |
### Tree ## Tree
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `lastCommit` | Commit | Last commit for the tree | | `lastCommit` | Commit | Last commit for the tree |
### TreeEntry ## TreeEntry
Represents a directory
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -959,7 +1041,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -959,7 +1041,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `flatPath` | String! | Flat path of the entry | | `flatPath` | String! | Flat path of the entry |
| `webUrl` | String | Web URL for the tree entry (directory) | | `webUrl` | String | Web URL for the tree entry (directory) |
### UpdateEpicPayload ## UpdateEpicPayload
Autogenerated return type of UpdateEpic
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -967,7 +1051,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -967,7 +1051,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `epic` | Epic | The epic after mutation | | `epic` | Epic | The epic after mutation |
### UpdateNotePayload ## UpdateNotePayload
Autogenerated return type of UpdateNote
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -975,7 +1061,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -975,7 +1061,9 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `note` | Note | The note after mutation | | `note` | Note | The note after mutation |
### UpdateSnippetPayload ## UpdateSnippetPayload
Autogenerated return type of UpdateSnippet
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -983,7 +1071,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -983,7 +1071,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `errors` | String! => Array | Reasons why the mutation failed. | | `errors` | String! => Array | Reasons why the mutation failed. |
| `snippet` | Snippet | The snippet after mutation | | `snippet` | Snippet | The snippet after mutation |
### User ## User
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
...@@ -993,7 +1081,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph ...@@ -993,7 +1081,7 @@ The API can be explored interactively using the [GraphiQL IDE](../index.md#graph
| `avatarUrl` | String! | URL of the user's avatar | | `avatarUrl` | String! | URL of the user's avatar |
| `webUrl` | String! | Web URL of the user | | `webUrl` | String! | Web URL of the user |
### UserPermissions ## UserPermissions
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
......
...@@ -4,6 +4,7 @@ module Types ...@@ -4,6 +4,7 @@ module Types
module DesignManagement module DesignManagement
class DesignCollectionType < BaseObject class DesignCollectionType < BaseObject
graphql_name 'DesignCollection' graphql_name 'DesignCollection'
description 'A collection of designs.'
authorize :read_design authorize :read_design
......
...@@ -4,6 +4,7 @@ module Types ...@@ -4,6 +4,7 @@ module Types
module DesignManagement module DesignManagement
class DesignType < BaseObject class DesignType < BaseObject
graphql_name 'Design' graphql_name 'Design'
description 'A single design'
authorize :read_design authorize :read_design
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module DesignManagement module DesignManagement
class DesignVersionEventEnum < BaseEnum class DesignVersionEventEnum < BaseEnum
graphql_name 'DesignVersionEvent' graphql_name 'DesignVersionEvent'
description 'Mutation event of a Design within a Version' description 'Mutation event of a design within a version'
NONE = 'NONE' NONE = 'NONE'
......
...@@ -4,6 +4,7 @@ module Types ...@@ -4,6 +4,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class EpicDescendantCountType < BaseObject class EpicDescendantCountType < BaseObject
graphql_name 'EpicDescendantCount' graphql_name 'EpicDescendantCount'
description 'Counts of descendent epics.'
field :opened_epics, GraphQL::INT_TYPE, null: true, description: 'Number of opened sub-epics' field :opened_epics, GraphQL::INT_TYPE, null: true, description: 'Number of opened sub-epics'
field :closed_epics, GraphQL::INT_TYPE, null: true, description: 'Number of closed sub-epics' field :closed_epics, GraphQL::INT_TYPE, null: true, description: 'Number of closed sub-epics'
......
...@@ -5,6 +5,7 @@ module Types ...@@ -5,6 +5,7 @@ module Types
# This is a subclass of `IssueType` which has authorization # This is a subclass of `IssueType` which has authorization
class EpicIssueType < IssueType class EpicIssueType < IssueType
graphql_name 'EpicIssue' graphql_name 'EpicIssue'
description 'Relationship between an epic and an issue'
present_using EpicIssuePresenter present_using EpicIssuePresenter
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class EpicStateEnum < BaseEnum class EpicStateEnum < BaseEnum
graphql_name 'EpicState' graphql_name 'EpicState'
description 'State of a GitLab epic' description 'State of an epic.'
value 'all' value 'all'
value 'opened' value 'opened'
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
module Types module Types
class EpicStateEventEnum < BaseEnum class EpicStateEventEnum < BaseEnum
graphql_name 'EpicStateEvent' graphql_name 'EpicStateEvent'
description 'State event of a GitLab Epic' description 'State event of an epic'
value 'REOPEN', value: 'reopen', description: 'Reopen the Epic' value 'REOPEN', value: 'reopen', description: 'Reopen the epic'
value 'CLOSE', value: 'close', description: 'Close the Epic' value 'CLOSE', value: 'close', description: 'Close the epic'
end end
end end
...@@ -5,6 +5,7 @@ module Types ...@@ -5,6 +5,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class EpicTreeNodeInputType < BaseInputObject class EpicTreeNodeInputType < BaseInputObject
graphql_name 'EpicTreeNodeFieldsInputType' graphql_name 'EpicTreeNodeFieldsInputType'
description 'A node of an epic tree.'
MoveTypeEnum = GraphQL::EnumType.define do MoveTypeEnum = GraphQL::EnumType.define do
name 'MoveType' name 'MoveType'
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
module Types module Types
class EpicType < BaseObject class EpicType < BaseObject
graphql_name 'Epic' graphql_name 'Epic'
description 'Represents an epic.'
authorize :read_epic authorize :read_epic
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
module Types module Types
module PermissionTypes module PermissionTypes
class Epic < BasePermissionType class Epic < BasePermissionType
description 'Check permissions for the current user on an epic'
graphql_name 'EpicPermissions' graphql_name 'EpicPermissions'
description 'Check permissions for the current user on an epic'
abilities :read_epic, :read_epic_iid, :update_epic, :destroy_epic, :admin_epic, abilities :read_epic, :read_epic_iid, :update_epic, :destroy_epic, :admin_epic,
:create_epic, :create_note, :award_emoji :create_epic, :create_note, :award_emoji
......
...@@ -10,7 +10,7 @@ module Gitlab ...@@ -10,7 +10,7 @@ module Gitlab
# It uses graphql-docs helpers and schema parser, more information in https://github.com/gjtorikian/graphql-docs. # It uses graphql-docs helpers and schema parser, more information in https://github.com/gjtorikian/graphql-docs.
# #
# Arguments: # Arguments:
# schema - the GraphQL schema defition. For GitLab should be: GitlabSchema.graphql_definition # schema - the GraphQL schema definition. For GitLab should be: GitlabSchema.graphql_definition
# output_dir: The folder where the markdown files will be saved # output_dir: The folder where the markdown files will be saved
# template: The path of the haml template to be parsed # template: The path of the haml template to be parsed
class Renderer class Renderer
......
...@@ -9,11 +9,15 @@ ...@@ -9,11 +9,15 @@
The API can be explored interactively using the [GraphiQL IDE](../index.md#graphiql). The API can be explored interactively using the [GraphiQL IDE](../index.md#graphiql).
## Objects Each table below documents a GraphQL type. Types match loosely to models, but not all
fields and methods on a model are available via GraphQL.
\ \
- objects.each do |type| - objects.each do |type|
- unless type[:fields].empty? - unless type[:fields].empty?
= "### #{type[:name]}" = "## #{type[:name]}"
- if type[:description]&.present?
\
= type[:description]
\ \
~ "| Name | Type | Description |" ~ "| Name | Type | Description |"
~ "| --- | ---- | ---------- |" ~ "| --- | ---- | ---------- |"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment