GraphQL NewType Non-null?
I'm surfacing a calculated map as its own type in GraphQL and trying to make the fields non-nullable, but can't seem to get it working. I've also tried dropping the
allow_nil?
s into constraints
key. Am I holding it wrong?

4 Replies
@barnabasj implemented this, they may be able to provide some support
Let me check today
Looks like i missed this in my implementation. I prepared a PR with the necessary changes https://github.com/ash-project/ash_graphql/pull/90
GitHub
fix: wrap type in non-null reference if allow_nil? is set to false ...
Contributor checklist
Bug fixes include regression tests
Thank you!
Just tried it, works perfectly. Thanks again!