You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sdeff what about defining your own value class ObjectId(val id: ByteArray), then the database column will contain compatible data for when the feature is released? It's hacky but might get you going?
you can expect the constructors and implement them by delegating to the org.bson.types.ObjectId implementation.
expect fun ObjectId(): ObjectId
expect fun ObjectId(hexValue: String): ObjectId
Untested so ymmv. I'd be curious if someone more knowledgable than this relative noob could say a priori that it won't work.
We should support the MongoDB ObjectId field type: https://docs.mongodb.com/manual/reference/method/ObjectId/
The text was updated successfully, but these errors were encountered: