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

Query embedded objects not work properly #6974

Open
proactivebit opened this issue Feb 11, 2025 · 0 comments
Open

Query embedded objects not work properly #6974

proactivebit opened this issue Feb 11, 2025 · 0 comments

Comments

@proactivebit
Copy link

proactivebit commented Feb 11, 2025

How frequently does the bug occur?

Always

Description

I need to filter my data by embedded object which is a list. I see that it's not working properly, wrong records are returned.
Case
I have my query
attempts.endDate >= 2023-01-01T00:00:00 AND attempts.endDate <= 2023-01-31T00:00:00 AND attempts.finish = true
attempts are my embedded objects, when there is more than one the query return record which has bellow data in attempts
Image
it seems that the query treat attempts objects as a whole not as a record. So it find records which has some end date more than specific date and some another end date less than specific date and some another record which has finish true.

Expected behaviour
query should filter my attempts record by record

What can I do to have my query works?

Stacktrace & log output

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

12.11.1

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

realm js

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant