realm-js
realm-js copied to clipboard
Support uniqueness constraint
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 https://github.com/realm/realm-java/issues/967 is resolved it will most likely propagate through to realm-js, but wanted to record it against this repo for others searching.
+1
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..
@dtmandroid not at the moment, no. We will update this issue when we look into it.
Any news on this?
@SMhdAsadi
Unfortunately not. But I will raise the feature request with the Realm Core team (see also https://github.com/realm/realm-core/issues/3860).
We Really Need this feature @realm-support
@quanle1996 Ya, I need too
++
+1 for this feature