Validate graphql query/mutation arguments on Elixir

It may be not so obvious, but you don’t need string to be with minimum length. You need password to be minimum length.

And this leads us two 2 different solutons:

  1. You can create GraphQL type Password, it’s easily achieved with Absinthe library itself.

  2. You can pass password as string, but validate it on your business logic. This can be done with your Ecto structures.