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 uniqueness constraint #422

Open
edmofro opened this issue May 5, 2016 · 8 comments
Open

Support uniqueness constraint #422

edmofro opened this issue May 5, 2016 · 8 comments

Comments

@edmofro
Copy link

edmofro commented May 5, 2016

Realm does not support a 'unique' constraint (other than a maximum of 1 primary key per object type).

This is highly desirable.

I realise this is something lacking from Realm's core, and when realm/realm-java#967 is resolved it will most likely propagate through to realm-js, but wanted to record it against this repo for others searching.

@tbeech
Copy link

tbeech commented Aug 31, 2016

+1

@dtmandroid
Copy link

I want to make field 'itemName' of Table Item to be unique in Android Realm. It means 'itemName' should not contain duplicate values. Is there any other way to achieve this except Primary key.. Thanks..

@kristiandupont
Copy link
Contributor

@dtmandroid not at the moment, no. We will update this issue when we look into it.

@SMhdAsadi
Copy link

Any news on this?

@kneth
Copy link
Contributor

kneth commented Mar 10, 2022

@SMhdAsadi

Unfortunately not. But I will raise the feature request with the Realm Core team (see also realm/realm-core#3860).

@kwanLeeFrmVi
Copy link

We Really Need this feature @realm-support

@thienvu23
Copy link

@quanle1996 Ya, I need too

@SaeedMuhaisen
Copy link

++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests