Back to Content Management API
sectionHistory
Returns array of all revisions for the section by ID paginated by a cursor.
Arguments
- Name
id
- Type
- ID!
- Description
The ID of the section of which you want to find its references.
Returns
- Name
Reference.*
- Type
- [Reference!]!
- Description
A list of references that this section is used in.
Request
import { PackClient } from '@pack/client'
const packClient = new PackClient({
token: 'YOUR-PACK-TOKEN'
});
const query = `
query SectionReferences($id: ID!) {
sectionReferences(id: $id) {
id
title
handle
description
}
}
`
const variables = {
id: 'section-id',
}
const response = await packClient.fetch(query, { variables: variables });
console.log(response.data);
Response
{
"data": {
"sectionReferences": {
"id": "section-id",
"title": "Section Title",
"handle": "section-title",
"description": "Section Description"
}
}
}