Hi all,
I was wondering if it’s possible embed an existing type into a payload type for a custom resolver.
So, atm I’m using an existing payload type in the following setup:
- Existing Type (List)
- [collection_name].
This works great, as I’m able to output my aggregation pipeline and use GraphQL to specify the fields I’m after. However, now I want to also output the total count, so I was wondering what the best way of doing this would be.
It would be like, all within 1 output:
- embed → Existing Type (List) for my [collection_name]
- int → totalCount