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
7 Replies
They both have defaults [:read] in actions
the relationship is public
Solution
do you have permission to read the related record?
there are no policies defined
only default ash_auth ones
haven't read anything on them yet, can this be a problem?
absolutely
:((
everything is forbidden
thanks
will look into it