Developers · GraphQL
GraphQL Admin Overview
Last updated 1 November 2026
What the admin GraphQL operations do, how they are named, and a worked example.
The admin queries and mutations read and change how an instance is built. That covers its pages, layouts, partials, tables, GraphQL files, authorization policies, notifications, assets, background jobs and logs. They are what the Insites admin itself uses, and you can call them from your own tools.
Use them to build tooling, audit an instance, or read the log from code. For your site's data, use the data operations instead.
How they are named
| Pattern | Example | What it does |
|---|---|---|
admin_ plus a plural | admin_pages, admin_tables | Lists records, with page, per_page, filter and sort |
admin_ plus _create, _update, _delete | admin_page_update | Changes one record |
_update_all, _delete_all | admin_pages_delete_all | Changes many records at once |
| A single object | admin_current_instance | Reads the instance serving the request |
Introspection on the docs.insites.io instance on 1 November 2026 listed 20 admin queries and 54 admin mutations. Deprecated operations, such as admin_forms, still run but are left out of that list.
Example: which instance am I on
Query
{
admin_current_instance { id name created_at }
admin_tables(per_page: 3) {
total_entries
results { name }
}
}Response on the docs instance
{
"data": {
"admin_current_instance": {
"id": "302",
"name": "site-e0c380c0",
"created_at": "2026-10-27T07:47:55.246Z"
},
"admin_tables": {
"total_entries": 28,
"results": [
{ "name": "ds_page_feedback" },
{ "name": "ds_promo" },
{ "name": "ds_search_event" }
]
}
}
}The two queries ran together, read-only. Run the first one before any change, so you know which instance you are about to write to.
Common mistakes
- Expecting module files in the lists. Files in the private directories of modules are not included.
- Editing a deployed page through
admin_page_updateand expecting it to last. A deploy replaces the page's metadata with its front matter, so put lasting values in the file. - Reading the log without a limit in mind.
admin_logsreturns 1 to 500 entries; the default is 20. - Using
admin_formsin new code. It is deprecated.