From 30775aa4288086cf7845994aca0716f83a88758c Mon Sep 17 00:00:00 2001 From: Hayden Shaw Date: Tue, 2 Apr 2019 16:59:52 +1300 Subject: [PATCH] DOCS HistoryViewerField updates * Add missing rollback operation in scaffolding example * Update block_id references to id to allow query to read query to run successfully in conjunction with HistoryViewerField --- docs/en/02_Developer_Guides/00_Model/10_Versioning.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/02_Developer_Guides/00_Model/10_Versioning.md b/docs/en/02_Developer_Guides/00_Model/10_Versioning.md index 6ffecad81..fb3282891 100644 --- a/docs/en/02_Developer_Guides/00_Model/10_Versioning.md +++ b/docs/en/02_Developer_Guides/00_Model/10_Versioning.md @@ -1014,6 +1014,7 @@ SilverStripe\GraphQL\Manager: fields: [ID, LastEdited] operations: readOne: true + rollback: true SilverStripe\Security\Member: fields: [ID, FirstName, Surname] operations: @@ -1087,7 +1088,7 @@ const config = { variables: { limit, offset: ((page || 1) - 1) * limit, - block_id: recordId, + id: recordId, } }; }, @@ -1125,7 +1126,7 @@ const config = { refetch({ offset: ((page || 1) - 1) * limit, limit, - block_id: recordId, + id: recordId, }); } },