Property 'base' in type 'PersonResolver' is not assignable to the same property in base type 'ResolverInterface<Person>'. #1056
-
I have a custom Person Type which returns a base field of the original PersonDB Type. However my base field resolver returns the following error
PersonResolver.ts
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Just don't use |
Beta Was this translation helpful? Give feedback.
-
I wrote a custom
Then you can type an object like this:
And your resolver gets typed like this:
We have been using this in our system and it works great. |
Beta Was this translation helpful? Give feedback.
Just don't use
ResolverInterface
, it's an optional helper that doesn't fit your needs.