Global ID
Every admin based resource as a unique identifier named Global ID
. If you want to perform a query on a single resource, you can simply visit the edit page of the resource in Sirius admin and copy this Global ID.
Example
As an example, let's say you have an EditorialType Factuel
. You can visit the admin page at https://*.sirius.press/admin/article/editorial-types
and view the list of defined editorial types for your articles. Click on the label Factuel
to access the edition page of this specific editorial type. At the bottom of the edition page, you can then copy the Global ID
Then you can query this specific editorial type by a simple call to the GraphQL API (see forming-calls and EditorialType)
query EditorialType {node(id: "bG9jYWw6RWRpdG9yaWFsVHlwZToyMQ==") {... on EditorialType {idkeyname}}}
The result of this query is an EditorialType
object:
Edit this page on GitHub{"data": {"node": {"id": "bG9jYWw6RWRpdG9yaWFsVHlwZToyMQ==","key": "factuel","name": "Factuel"}}}