I am developing a social network and I want to store my data with MongoDB and I am faced with a problem how i can store.
Let me explain here is a document containing a users:
{
"_id" : ObjectId("5bcc70df3766462078e0a942"),
"name" : "FlaRize",
"password" : "123456789"
"description" : "A good man !"
"friend" : [
{ "_id" : ObjectId("5bcc47a66a04301cac7e7c67"),
"name" : "Steve",
"password" : "azerty"
"description" : "Nothing" },
{ "_id" : ObjectId("5bcb9d06681bbf3cc4b811b9"),
"name" : "John",
"password" : "999"
"description" : "What is ur problem ?" }
]
}
My first question is, is it a good way to store my data ?
If Steve changes his name this will not change his name in the FlaRize document how to fix it?
I was told that 'JOIN' does not exist in NOSQL is this true ?
I am a beginner in mongoDB, thank you for giving me a maximum of info so that my database got an exelante structure