Ashni Mehta
11/05/2023, 6:05 PMCLOVIS
11/06/2023, 2:56 PMcollection.find(
User::gender eq "female",
User::age eq 29,
)
to
val filter = Filters.and(Filters.eq(User::gender.name, "female"), <http://Filters.gt|Filters.gt>(User::age.name, 29))
val results = collection.find<Results>(filter)
which is much harder to read for no obvious benefit.
Would it be possible to clarify on the builder page how to create builders that use subfields? For example, if I have:
class User(
val name: String,
val preferences: Set<Preference>,
)
class Preference(
val type: String,
)
how can I write a request using the builders that adds Preference("foo")
to the user "test"
, if they do not already have it? ($pushToSet
). I haven't found an example of how to do this in the documentation.Ashni Mehta
11/07/2023, 9:41 PMCLOVIS
11/10/2023, 3:36 PMAshni Mehta
11/13/2023, 5:15 PM