Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3aa2ace3
Commit
3aa2ace3
authored
Feb 18, 2021
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docs lint error
Rebuild docs
parent
1445884a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
app/graphql/resolvers/concerns/resolves_snippets.rb
app/graphql/resolvers/concerns/resolves_snippets.rb
+1
-1
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+16
-2
No files found.
app/graphql/resolvers/concerns/resolves_snippets.rb
View file @
3aa2ace3
...
...
@@ -8,7 +8,7 @@ module ResolvesSnippets
argument
:ids
,
[
::
Types
::
GlobalIDType
[
::
Snippet
]],
required:
false
,
description:
'Array of global snippet ids, e.g.,
"gid://gitlab/ProjectSnippet/1"
.'
description:
'Array of global snippet ids, e.g.,
`gid://gitlab/ProjectSnippet/1`
.'
argument
:visibility
,
Types
::
Snippets
::
VisibilityScopesEnum
,
required:
false
,
...
...
doc/api/graphql/reference/index.md
View file @
3aa2ace3
...
...
@@ -103,7 +103,7 @@ Fields related to Instance Security Dashboard.
### InstanceStatisticsMeasurements
Get statistics on the instance.
Get statistics on the instance.
Deprecated in 13.10: This field was renamed. Use the
`usageTrendsMeasurements`
field instead..
| Name | Description | Type |
| ----- | ---- | ----------- |
...
...
@@ -216,12 +216,26 @@ Find Snippets visible to the current user.
|
`before`
| Returns the elements in the list that come before the specified cursor. | String |
|
`explore`
| Explore personal snippets. | Boolean |
|
`first`
| Returns the first _n_ elements from the list. | Int |
|
`ids`
| Array of global snippet ids, e.g.,
"gid://gitlab/ProjectSnippet/1"
. | SnippetID! => Array |
|
`ids`
| Array of global snippet ids, e.g.,
`gid://gitlab/ProjectSnippet/1`
. | SnippetID! => Array |
|
`last`
| Returns the last _n_ elements from the list. | Int |
|
`projectId`
| The ID of a project. | ProjectID |
|
`type`
| The type of snippet. | TypeEnum |
|
`visibility`
| The visibility of the snippet. | VisibilityScopesEnum |
### UsageTrendsMeasurements
Get statistics on the instance.
| Name | Description | Type |
| ----- | ---- | ----------- |
|
`after`
| Returns the elements in the list that come after the specified cursor. | String |
|
`before`
| Returns the elements in the list that come before the specified cursor. | String |
|
`first`
| Returns the first _n_ elements from the list. | Int |
|
`identifier`
| The type of measurement/statistics to retrieve. | MeasurementIdentifier! |
|
`last`
| Returns the last _n_ elements from the list. | Int |
|
`recordedAfter`
| Measurement recorded after this date. | Time |
|
`recordedBefore`
| Measurement recorded before this date. | Time |
### User
Find a user.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment