Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:26
Show Gist options
  • Select an option

  • Save dacr/08bfbe28ea42368eaa42d0d11ebab2e2 to your computer and use it in GitHub Desktop.

Select an option

Save dacr/08bfbe28ea42368eaa42d0d11ebab2e2 to your computer and use it in GitHub Desktop.
get current user github snippets / published by https://github.com/dacr/code-examples-manager #da68b3a1-9ae6-4bc0-8165-f14aceaa9897/63b577fe0867a0336fb4a7e18ef25b558c62999c
## summary : get current user github 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 : da68b3a1-9ae6-4bc0-8165-f14aceaa9897
## created-on : 2021-04-19T14:35:46Z
## managed-by : https://github.com/dacr/code-examples-manager
# schema specs => https://docs.github.com/public/schema.docs.graphql
# -----------------------------------------------------------------------------
{
viewer {
gists(first:5) {
nodes { id description }
pageInfo { endCursor startCursor }
}
}
}
# -----------------------------------------------------------------------------
{
viewer {
gists(first:100) {
nodes { id description
files(limit:2) {
name
}
}
pageInfo { endCursor startCursor }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment