Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug / Help with UUID find and replace #358

Closed
shmezi opened this issue Jul 30, 2022 · 2 comments
Closed

Bug / Help with UUID find and replace #358

shmezi opened this issue Jul 30, 2022 · 2 comments

Comments

@shmezi
Copy link

shmezi commented Jul 30, 2022

So, I've tried inserting my object, which works fine and adds to the db something like:
image
but any time I try query the uuid it doesn't come up.

Yes I set the uuid representation:

KMongo.createClient(
        MongoClientSettings.builder().uuidRepresentation(UuidRepresentation.STANDARD)
            .applyConnectionString(ConnectionString(connection)).build()
    )

Note: I use jackson

Help would be appreciated :)

@zigzago
Copy link
Member

zigzago commented Aug 7, 2022

Have you tried to use the setUUIDRepresentation function? http://litote.org/kmongo/dokka/kmongo/org.litote.kmongo.util/-k-mongo-jackson-feature/index.html

I'm going to add this function in documentation as you are not the first to ask (see #338)

HTH

zigzago added a commit that referenced this issue Aug 7, 2022
@shmezi
Copy link
Author

shmezi commented Aug 8, 2022

Have you tried to use the setUUIDRepresentation function? http://litote.org/kmongo/dokka/kmongo/org.litote.kmongo.util/-k-mongo-jackson-feature/index.html

I'm going to add this function in documentation as you are not the first to ask (see #338)

HTH

I mean if you look above I use that function, altho I figured out if I also use the function on the collection (can't remember exactly if it was the collection or what) then it works.. it was very iffy for me tho.

@zigzago zigzago closed this as completed Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants