Skip to content
gist.link ↗

breadcrumbs

Query Drive API — POST https://drive.api.gist.link/graphql

Ancestor chain, root first, ending with the node itself.

drive:query:breadcrumbs

The calling IAM key must hold this permission (or a wildcard that covers it: drive:query:* or drive:*) and the access token must have been minted with audience=drive. See Permissions.

type Query {
breadcrumbs(id: Int!): [Node!]!
}
Argument Type Required Description
id Int! Yes —

[Node!]! — see the Drive types reference.

Terminal window
curl https://drive.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Breadcrumbs($id: Int!) { breadcrumbs(id: $id) { id type name status } }",
"variables": {
"id": 10
}
}
JSON