graphql-compose / graphql-compose/graphql-compose-mongoose

Sub documents.

Open
#41 5 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.