Skip to content

Latest commit

 

History

History
6 lines (3 loc) · 435 Bytes

Mutations.md

File metadata and controls

6 lines (3 loc) · 435 Bytes

Configuring Mutations

Many of the samples in the documentation refer to just a Query type. You can define both query and mutation types by deriving your model from OttoModel<TQuery, TMutation> where TQuery is your query type and TMutation is your mutation type. All other configuration is identical for both query and mutation types.

Mutations, in compliance with the GraphQL spec, will always be executed before queries.