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

Adding SetField #2337

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tylerganter
Copy link

@tylerganter tylerganter commented May 27, 2020

SetField inherits from ListField and is represented as a list on the database side of things. The differences from ListField are that instead of containing a BaseList object, a document's field contains a BaseSet object.

A SetField can be assigned a list or tuple, but will be cast as a set.

In order to make sets stored to the database deterministic, sets are stored as sorted lists.

I have not changed the documentation. If everything seems good I'll make the effort.

  • support for SetField
  • tests
  • documentation

Closes #2336

@tylerganter
Copy link
Author

bueller?

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

Successfully merging this pull request may close these issues.

Support for SetField
1 participant