I have a question about the CSRF token for doing graphql mutations. In regular silverstripe forms the token is added as a hidden field. Where can I get the token to use for the graphql mutation?
we wrote an endpoint to return the SecurityID,
Anytime we need it, we query it via a service: https://github.com/NZTA/SDLT/blob/master/themes/sdlt/src/js/services/CSRFTokenService.js
Ah, yeah, good point. This should have gone hand-in-hand with the CSRF fix. Would love a PR of that, @null
@unclecheese How do I specify what arguments can be passed? I basically want to pass a parameter to a function on a DataObject.
The simplest solutions are often the best @kinglozzer 😄
@Nemanja Karadzic has joined the channel