Last active
February 3, 2026 20:19
-
-
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/3b1372a6a3ceb4633685e1eae44e683f0cbe97e1
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 License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| ## 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