Skip to content
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

Cannot add litteral array with SetUnion #4809

Open
npen opened this issue Oct 11, 2024 · 1 comment
Open

Cannot add litteral array with SetUnion #4809

npen opened this issue Oct 11, 2024 · 1 comment
Labels
status: waiting-for-feedback We need additional information before we can continue

Comments

@npen
Copy link

npen commented Oct 11, 2024

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

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 11, 2024
@christophstrobl
Copy link
Member

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.

@christophstrobl christophstrobl added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-feedback We need additional information before we can continue
Projects
None yet
Development

No branches or pull requests

3 participants