-
Notifications
You must be signed in to change notification settings - Fork 79
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
using owner in an identifier #3105
Comments
Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance. |
Hi @mainvtm, we do not recommend using the owner field as part of the primary key partly for the reasons you've outlined in this issue. In order to meet your use-case
|
This doesn't solve the requirement of having unique owner-email pairs (different owners could not create a contact with the same email?). I achieved this with a secondary index, but this feels like it should be possible with the primary index.
|
Environment information
Describe the bug
I'm trying to use
identifier
to ensure that each user only adds an email address once (email
is unique perowner
).Reproduction steps
If I leave it as optional (as per the documentation), i can't use owner in the
identifier
However if set
owner
as required, I cannot create rows as I wouild need to supply owner.The text was updated successfully, but these errors were encountered: