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?


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

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

Good example of a larger business app using GraphQL: https://github.com/NZTA/SDLT/blob/28a15fd07f2336fcb8caa3c42a37a9072611295d/app/_config/graphql.yml. Thanks for sharing @null!

Show 1 attachment(s)

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

Hide attachment content
👍 (2)

And also, lacking about 24 hours of time per day