VBT.Credo.Check.Graphql.MutationField (vbt v0.1.0) View Source

This check has a base priority of high and works with any version of Elixir.

Explanation

Mutation field in a relay schema should be a payload field.

# preferred

payload field :some_field, ...


# NOT preferred

field :some_field, ...

Configuration parameters

There are no specific parameters for this check.

Like with all checks, general params can be applied.

Parameters can be configured via the .credo.exs config file.