MorphiaOrg / morphia

MongoDB object-document mapper in Java based on https://github.com/mongodb/mongo-java-driver
Apache License 2.0
1.65k stars 456 forks source link

Kotlin DSLs for query and aggregations #2433

Open evanchooly opened 1 year ago

evanchooly commented 1 year ago

Explore kotlin dsls as alternatives for the standard Datastore/Query/Aggregation APIs.

TheFlash787 commented 3 months ago

Hi @evanchooly, really looking forward to seeing this in the future.

In the meantime, can you advise whether Critter is still Kotlin-compatible? I'd love to make use of it in the meantime, even if it's not quite as pretty as Kotlin DSL.

evanchooly commented 3 months ago

critter should be usable via kotlin. there are tests against kotlin code so I would expect that work. Critter is a bit behind Morphia, however, and doesn't work with 2.4 last I checked. It should work with 2.3, though.

I'm working on integrating critter in to the main morphia repo as part of 3.0 so that sort of lag is no longer a problem. I just started work on that this last week, really. It's one of the tent pole features of 3.0 that I'm most excited about honestly.

TheFlash787 commented 3 months ago

critter should be usable via kotlin. there are tests against kotlin code so I would expect that work. Critter is a bit behind Morphia, however, and doesn't work with 2.4 last I checked. It should work with 2.3, though.

I'm working on integrating critter in to the main morphia repo as part of 3.0 so that sort of lag is no longer a problem. I just started work on that this last week, really. It's one of the tent pole features of 3.0 that I'm most excited about honestly.

Thank you so much!