Skip to content

Instantly share code, notes, and snippets.

@Ligalaiz
Created March 1, 2022 16:48
Show Gist options
  • Save Ligalaiz/5a8e6c9515e510c329a16d17437a10ae to your computer and use it in GitHub Desktop.
Save Ligalaiz/5a8e6c9515e510c329a16d17437a10ae to your computer and use it in GitHub Desktop.
#1
query {
topic(name:"graphql") {
relatedTopics{
name
}
}
}
#2
query {
repository(name:"graphql-spqr-samples", owner:"leangen") {
pushedAt
shortDescriptionHTML
pullRequests(states:OPEN){
totalCount
}
issues(states:OPEN){
totalCount
}
languages(first:5) {
edges {
node {
color
name
}
}
}
}
}
#3
query user($name: String!) {
user(login: $name) {
name
email
pinnedItems(first:2){
nodes{
__typename
}
}
repositories(first:5) {
nodes {
name
}
}
}
}
#3 - vars
{
"name": "your-name-here"
}
#4 issues
query {
viewer {
login
email
issues(first:5) {
edges {
node {
id
title
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment