Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

field constraint #113

Closed
cryax opened this issue Apr 11, 2018 · 2 comments
Closed

field constraint #113

cryax opened this issue Apr 11, 2018 · 2 comments

Comments

@cryax
Copy link

cryax commented Apr 11, 2018

Is there any way to ensure a field is unique in feathers mongodb?

@daffl
Copy link
Member

daffl commented Apr 11, 2018

You can create a normal MongoDB unique index. The collection is available as service.Model.

@cryax
Copy link
Author

cryax commented Apr 12, 2018

Thanks

@cryax cryax closed this as completed Apr 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants