Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] deeper projections #20

Closed
st0ffern opened this issue Sep 27, 2016 · 0 comments
Closed

[Bug] deeper projections #20

st0ffern opened this issue Sep 27, 2016 · 0 comments

Comments

@st0ffern
Copy link
Collaborator

after this commit 1b26bf47 deeper projections dont work.

example:

HouseTC.addRelation(
  'people',
  () => ({
    resolver: UserTC.getResolver('connection'),
    args: {
      filter: (source) => ({ 
        _operators: {
          _id: {
            in: source.peopleIds.map(p => p.people) || []
          }
        } 
      }),
    },
    projection: { peopleIds: { people: true } },
  })
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants