#cross resolver reference

2 messages · Page 1 of 1 (latest)

unborn folio
#

Hey,
I am writing schema first.
I have the following scenario:

  1. I have a resolver that resolves an object called "posts" and each post has a comment where I implemented it used ResolveField
  2. I have a resolver that resolves "person" and now I want person to return "posts" and to use the logic that I have already written, I have the logic of posts resolving in a service so injecting that service is an option and then I will have to do another ResolveField on the "posts" that are returned

is there another way of using what already exists instead of injecting the service ?

ashen flax
#

Injecting a service that does the job seems perfectly reasonable. Do you have any other idea in mind?