spring-data-mongodb
spring-data-mongodb copied to clipboard
Cannot add litteral array with SetUnion
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
Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.