ash-project / ash_graphql

The extension for building GraphQL APIs with Ash
https://hexdocs.pm/ash_graphql
MIT License
71 stars 46 forks source link

fix: error handling list of atoms #204

Closed kamciokodzi closed 1 month ago

kamciokodzi commented 1 month ago

Current implementation doesn't support basic case of list of atoms as errors.

** (ArgumentError) cannot convert the given list to a string.

To be converted to a string, a list must either be empty or only
contain the following elements:

  * strings
  * integers representing Unicode code points
  * a list containing one of these three elements

Please check the given list or call inspect/1 to get the list representation, got:

[:option1, :option2, :option3]

Contributor checklist

zachdaniel commented 1 month ago

🚀 Thank you for your contribution! 🚀