AshGraphQL cannot return null on non nullable field
I have a belongs_to allow_nil? false relationship, and when I use psql I see that the field exists, and the related table contains the data. However when I use graphql to access it I get
Cannot return null for non-nullable field
Cannot return null for non-nullable field
Solution
do you have permission to read the related record?
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.