graphql

timgilbert 2019-03-29T15:34:10.001900Z

Say, in lacinia when I have a query like this:

query GetStuff($stuff: ID!) {
  stuff(thing: $stuff) {
    id
  }
}
...is there a way to get the top-level query name GetStuff out of the context?

2019-03-29T18:33:15.002600Z

I've been able to get that name when using lacinia-pedestal:

(-> context :request :body (json/decode true) :query)

2019-03-29T18:34:17.003200Z

I don't know if it's available in the Lacinia context though.

2019-03-29T18:58:40.003400Z

https://twitter.com/oliyh/status/1111649735369261056?s=19

😃 2