graphql-compose / graphql-compose/graphql-compose-mongoose
Sub documents.
Open
- Dominant language
- TypeScript
- Stars
- 706
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Suppose I have subsets on a document like so,
friends : [ {userId: string, meta: {}},... ]
Where meta contains discriminator for the type of friend
How whould I create a relation on freinds that resolves to friends where meta.mutual = 1, and returning a list of friend Profile objects where the Profile object represents a subset user fields e.g.,
{ username, avatar, userId, ....}?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.