json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Define some data in db.json as unique

Open filepi opened this issue 8 years ago • 0 comments

Hello, I'm new using json-server then I would like to know if it is possible set some data to be unique. Let's say, for example, that my json server should not allow user to insert a register with the same name. And return an error if user tries to do that.

filepi avatar May 03 '18 17:05 filepi