Fork me on GitHub
#graphql
<
2019-11-26
>
miikka12:11:50

In Lacinia, if the query includes both mutations and queries, in which order are they run?

dominicm13:11:22

I think the spec has something to say about this.

miikka19:11:04

Right, yeah, the spec says that you can't mix different kinds of operations

miikka19:11:10

Hmm, no, I misread

miikka19:11:26

Okay, now I get it. You can have multiple operations in one document, but then you must provide (out-of-band, i suppose?) the name of the operation you want to execute.

dominicm21:11:27

I thought it specified ordering. Query then mutations. Queries must be transactional. Mutations are not.