Current section

Files

Jump to
potionx priv templates potion.gen.gql_for_model mutation.gql
Raw

priv/templates/potion.gen.gql_for_model/mutation.gql

mutation <%= model_name_graphql_case %>Mutation(
$changes: <%= model_name %>Input,
$filters: <%= model_name %>FiltersSingle
) {
<%= model_name_graphql_case %>Mutation(
changes: $changes,
filters: $filters
) {
errors
errorsFields {
field
message
}
node {
__typename
internalId
<%= for field <- graphql_fields do %><%= field %>
<% end %>
}
}
}