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
This commit is contained in:
Hayden Shaw 2019-04-02 16:59:52 +13:00 committed by GitHub
parent 0f00154563
commit 30775aa428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});
}
},