Replies: 4 comments
-
To reiterate this odes not work
While this does
|
Beta Was this translation helpful? Give feedback.
-
Object type classes can't have parameters in constructor. |
Beta Was this translation helpful? Give feedback.
-
Hmmm its a common pattern I have been following that has worked fine. However let me try that and see if it fixes this issue |
Beta Was this translation helpful? Give feedback.
-
You're also returning an object from the constructor, which breaks |
Beta Was this translation helpful? Give feedback.
-
Describe the Bug
For some reason when adding @root to a field resolver it ceases to work properly
To Reproduce
I have the following model
_Warning some elements are simplified/redacted both for privacy reasons and to make example easier to illustrate _
and the associated resolver
I think attempt to run the following query
Rule is a model that exists on parentObject.
When I write my field resolver as listed above it just never runs and I get a
non-nullable field
error.When I write my field resolver without adding in the @root decorator. Then it properly returns
some nonsense
as the ruleTrue field.Beta Was this translation helpful? Give feedback.
All reactions