As title, I'm using Github GraphQL explorer to fetch list of my gists.
query {
viewer {
gists(first:5, privacy:ALL) {
edges {
node {
id
description
name
pushedAt
}
}
}
}
}
Everything works fine except that the secret gists are not included in the response. When I tried to fetch secret gists by changing the GistPrivacy
from ALL
to SECRET
as below:
query {
viewer {
gists(first:5, privacy:SECRET) {
edges {
node {
id
description
name
pushedAt
}
}
}
}
}
The following permission error occurred:
{
"data": {
"viewer": {
"gists": {
"edges": []
}
}
},
"errors": [
{
"message": "You don't have permission to see gists."
}
]
}
I wonder is there any way to solve this problem. I noticed that there was a related questions with irrelevant answer asked 5 years ago.
Any comment or help is much appreciated, thanks in advance.