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

Support for binary subtype 0x04 UUIDs #2747

Open
nmoreaud opened this issue Mar 31, 2023 · 0 comments
Open

Support for binary subtype 0x04 UUIDs #2747

nmoreaud opened this issue Mar 31, 2023 · 0 comments

Comments

@nmoreaud
Copy link

nmoreaud commented Mar 31, 2023

Hello,
While searching on the web, I have seen no mention for mongoengine support of current version of mongo UUID fields (binary subtype 0x04).
When I use the following definition it generates a binary subtype 3 ; which MongoDB compass doesn't display efficiently.

class User(mongoengine.Document):
    id = mongoengine.UUIDField(primary_key=True, required=True, default=lambda: str(uuid.uuid4()))

u = User()
u.save()

Do you support "binary subtype 0x04 UUIDs"?
How can we use them?
Is there an easy migration path?

Thanks for your support


Tested with version: 0.27
MongoDB 4.4.14 Community

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

1 participant