realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Public field name not available on Flexible sync queries #7660

Open clementetb opened 2 years ago

clementetb commented 2 years ago

How frequently does the bug occur?

All the time

Description

If both public and private name are defined on a field, the public one cannot is not available to define Flexible sync queries.

Stacktrace & log output

No response

Can you reproduce the bug?

Yes, always

Reproduction Steps

  1. Define a model with a field that has an internal and public name.
  2. Try to define a Flexible sync query that filters by the public field name.
  3. Throw error as the public name is not available.

Version

10.10.1

What SDK flavour are you using?

MongoDB Realm (i.e. Sync, auth, functions)

Are you using encryption?

No, not using encryption

Platform OS and version(s)

Android12

Build environment

Android Studio version: ... Android Build Tools version: ... Gradle version: ...