-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Milestone
Description
When reading a document if the _id is a composed map, the UUID is marshalled will be UUIDv6, UUIDV7, or defauldUUID
But if the collection has no default ID it returned an error telling it should be a UUID instead of simply returning a UUID.
UUID uuid = UUID.randomUUID();
collectionSimple.insertOne(new Document().id(uuid).append("hello", "world"));
collectionSimple.findOne(Filters.eq(uuid));java.lang.IllegalStateException: Returned _id is a UUID, but no defaultId is set in the collection definition.
Reactions are currently unavailable