-
Notifications
You must be signed in to change notification settings - Fork 1.8k
docs(array filter): add example using array filters #1647
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
I have moved the example to
|
test/functional/examples_tests.js
Outdated
@@ -1192,4 +1192,36 @@ describe('Examples', function() { | |||
}); | |||
} | |||
}); | |||
|
|||
it.only('supports array filters when updating', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤣
Add an example of using
arrayFilters
in an update for the docs team.Fixes NODE-1263