Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/99ff5697dc4645bf22621930fb456ebe to your computer and use it in GitHub Desktop.
Save dacr/99ff5697dc4645bf22621930fb456ebe to your computer and use it in GitHub Desktop.
get current user gitlab snippets / published by https://github.com/dacr/code-examples-manager #1d3732c5-257e-4fd4-9f9c-87f0e3b2d78f/bd41691efa737102502f4e17f3c90932fdb9ff41
## summary : get current user gitlab snippets
## keywords : gitlab, snippets, graphql
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : 1d3732c5-257e-4fd4-9f9c-87f0e3b2d78f
## created-on : 2021-04-19T14:35:46Z
## managed-by : https://github.com/dacr/code-examples-manager
# schema specs => https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/graphql/reference/gitlab_schema.graphql
# try online using : https://gitlab.com/-/graphql-explorer
# -----------------------------------------------------------------------------
{
currentUser {
snippets(first:5) {
nodes { id description }
pageInfo { endCursor startCursor }
}
}
}
# -----------------------------------------------------------------------------
{
#currentUser {
snippets(first:5) {
nodes { id description
fileName
}
pageInfo { endCursor startCursor }
}
#}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment