B
B
beduin012016-03-24 11:22:55
NoSQL
beduin01, 2016-03-24 11:22:55

What is the best way to store user profiles in NoSQL?

Got to NoSQL. I plan to use ArangoDB, but essentially the same MongoDB. Question. How is it better to store users in a NoSQL database?
It turns out for each user I create my own document of the form in the collection:

{
  login: "",
  password: "",
  name: "",
  organization: ""
}

And when registering, I write data there, and then I read it. The login field is unique, should it be? Are there any nuances?
It turns out in the code I form JSON filled with data and throw it into the database. Is that all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kumanin, 2016-03-24
@jackkum

mongoosejs.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question