Last active
April 2, 2023 10:10
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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