Fork me on GitHub
#graphql
<
2019-03-29
>
timgilbert15:03:10

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?

jvtrigueros18:03:15

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

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

jvtrigueros18:03:17

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