Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
652 views
in Technique[技术] by (71.8m points)

mongodb - Intellij/Datagrip query mongo by legacy uuid

I'm trying to query mongodb from intellij 2020.03 by uuid by I can't get my head over that. Can somebody please help me how to properly write the query for that?

I'm trying to search by this but that's not working at all.

db.tenant.find({_id: UUID('08933368-1cc5-4e09-8d75-07feca013214')});

edit: it's type 3 so probably legacy uuid

question from:https://stackoverflow.com/questions/65599598/intellij-datagrip-query-mongo-by-legacy-uuid

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Ok so after digging through some of the youtrack issues I found that it's needed to change the uuidRepresentation in connection settings to javaLegacy and mentioned query works nowenter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...