You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However I noted that in the POST requests to the graphql endpoint it complained that there wasn't a field called "Version" etc - it appears that things have changed from PascalCase to camelCase.
I've fixed that, and now don't get any errors. Aaaand I don't get anything showing in the history tab.
Here are the files I've added from a fresh composer create-project silverstripe/installer
al@DESKTOP-KPR8GHG:~/history$ composer show | grep graphql
silverstripe/graphql 3.5.0 GraphQL server for SilverStripe models and other data
webonyx/graphql-php v0.12.6 A PHP port of GraphQL reference implementation
I originally asked on Slack, and was advised to create an issue here.
I managed to get it working through a fair amount of trial, error, and swearing; the docs appear to assume elemental is installed but don't make any mention of them as a requirement. Also the example provided for the readOne_X_Query has the wrong shape.
I updated the original gist to show what I changed from the docs to get it to work:
Hi all,
I've been unsuccessful in getting the most basic example of version history working.
I followed the guide here https://docs.silverstripe.org/en/4/developer_guides/model/versioning/#versioning
However I noted that in the POST requests to the graphql endpoint it complained that there wasn't a field called "Version" etc - it appears that things have changed from PascalCase to camelCase.
I've fixed that, and now don't get any errors. Aaaand I don't get anything showing in the history tab.
Here are the files I've added from a fresh
composer create-project silverstripe/installer
https://gist.github.com/altwohill/8ae8dbe15095e95ecb1d0a626d162a6f
Any ideas?
The text was updated successfully, but these errors were encountered: