Skip to content

Properly handle select/include pairs #2786 #2809

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

Merged
merged 2 commits into from
Oct 7, 2016
Merged

Properly handle select/include pairs #2786 #2809

merged 2 commits into from
Oct 7, 2016

Conversation

flovilmart
Copy link
Contributor

@flovilmart flovilmart commented Oct 1, 2016

This PR provides a fix for a nasty side effect introduced in 2.2.22 causing included object not to be properly included.

Fixes #2786

@flovilmart flovilmart changed the title Issue #2786 Properly handle select/include pairs #2786 Oct 1, 2016
Copy link
Contributor

@steven-supersolid steven-supersolid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

let gameScore = obj.get("gameScore");
let other = obj.get("other");
expect(other).toBeUndefined();
expect(gameScore).not.toBeUndefined();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: jasmine also has toBeDefined()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

query include does not work as expected in conjunction with keys
3 participants