Skip to content

Conversation

@jlord
Copy link
Contributor

@jlord jlord commented Jan 22, 2018

Add an example of using arrayFilters in an update for the docs team.

Fixes NODE-1263

@jlord jlord requested review from daprahamian and mbroadst January 22, 2018 16:27
Copy link
Member

@mbroadst mbroadst left a comment

Choose a reason for hiding this comment

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

These should be in operation_example_tests.js, operation_generators_example_tests.js, operation_promises_example_tests.js (modified per variant) instead. It made sense to put all the changestreams in one file because there were a few, but this is a single test.

const db = client.db(configuration.db);
const collection = db.collection('arrayFilterUpdateExample');

// 3. Exploiting the power of arrays
Copy link
Member

Choose a reason for hiding this comment

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

also does this line need a corresponding end tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will check with the docs team 👍

@jlord
Copy link
Contributor Author

jlord commented Jan 23, 2018

I have moved the example to examples_tests.js which we talked about (in real life) of being a better home than the files mentioned ☝️ above.

  • I'm still waiting for feedback on if there is a closing code comment we need to use.

}
});

it.only('supports array filters when updating', {
Copy link
Contributor

Choose a reason for hiding this comment

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

.only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤣

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.

4 participants