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

Filter by Map in Mongo #337

Open
konopkin11 opened this issue Oct 30, 2023 · 1 comment
Open

Filter by Map in Mongo #337

konopkin11 opened this issue Oct 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@konopkin11
Copy link

I have texted you in Discord, you said to ask you here.
I can't figure out how to filter by Map. Using your mongo-example project as an example
There is an entity company, which has a field Map<String, String> websites. Let's say there is an object in mongo
{ name : "Apple"
websites : {
"someSiteDefaultName" : "someUrl.com"
}
}
And I want to compose a query like this websites.someSiteDefaultName : "someUrl.com" . How do I do that? At the moment I get an error that there is no someSiteDefaultName field in the Map class.
You said maps are currently supported only in the JPA module, so please make support for it.

@torshid
Copy link
Member

torshid commented Jan 10, 2024

Not sure how we can handle maps other than Map<String, String>, your PR only handles this case unfortunately.
Feel free to share more generic solutions.

@torshid torshid added the enhancement New feature or request label Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants