nils

@unclecheese How do I specify what arguments can be passed? I basically want to pass a parameter to a function on a DataObject.

unclecheese

Ah, yeah, good point. This should have gone hand-in-hand with the CSRF fix. Would love a PR of that, @null

null

Anytime we need it, we query it via a service: https://github.com/NZTA/SDLT/blob/master/themes/sdlt/src/js/services/CSRFTokenService.js

Show 1 attachment(s)
GitHub  
NZTA/SDLT

Security Development Lifecycle Tool. Contribute to NZTA/SDLT development by creating an account on GitHub.

Hide attachment content
null

we wrote an endpoint to return the SecurityID,

_config.php

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?

nils

Is it possible to use arguments on fields? i.e.

  1. {
  2. human(id: "1000") {
  3. name
  4. height(unit: FOOT)
  5. }
  6. }