- Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Description
Hello,
Using SetOperators.SetUnion:
SetOperators.arrayAsSet("aField").union("anotherField")
How can I reproduce this expression that works fine in Mongo, when one field is a single value and needs to be wrapped in square brackets:
$setUnion: [ "$arrayOfStringField", [ "$stringField" ] ]
Thanks
Metadata
Metadata
Assignees
Labels
No labels