Get the parent field in a nested document field resolver #967
-
Hi, I need to access the fields of the parent in a field resolver. @root() used to contain a Here is my classes (simplified):
I have a simple resolver that returns an instance of Entity. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
oliversalzburg
Aug 4, 2021
Replies: 1 comment 1 reply
-
The root object is just what it is. If it did have a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nivo33
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The root object is just what it is. If it did have a
$parent
property before you upgraded mongoose, then the previous version of mongoose added it. This doesn't sounds related to TypeGraphQL.