top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to create primary/foreign key relationships in MongoDB? Please give with an example?

0 votes
343 views
How to create primary/foreign key relationships in MongoDB? Please give with an example?
posted Nov 4, 2017 by Jdk

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

Query description: I have a collection name student_db and added a document in a collection with entries (name: "alok, age : 31 and profession: "xyz"). After inserting the document into student_db database, I want to add another (key:value ) pair i.e. salary: 50000.

Can someone help me out to resolve this problem ?

0 votes

some same cases data is not important, and replicate them from primary to secondary will waste servers performance. Is there any ways to config?

...