[SERVER-35266] Insert a document with mongodb which is not present in a document with mongo-java driver Created: 29/May/18  Updated: 01/Jun/18  Resolved: 29/May/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: siddareddy Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Collection is like this:
if you enter the following detils if its not match with database collection need to insert with document

name:
e id:
mobile:
email:

{ "_id" : ObjectId("5b0b9a384f7d4fbc4bfcf537"), "password" : "12345", "email" : "sripelli.rakesh@gmail.com", "adminstatus" : true, "emp_id" : "10889", "loginstatus" : true, "name" : "rakesh", "notification" : true, "mobile" : "8978697298" } { "_id" : ObjectId("5b0b9a384f7d4fbc4bfcf538"), "name" : "ramya", "password" : "123456", "email" : "munja.ramya@gmail.com", "mobile" : "8463931619", "emp_id" : "1086", "adminstatus" : true, "notification" : false, "loginstatus" : true } { "_id" : ObjectId("5b0b9a384f7d4fbc4bfcf539"), "name" : "mukunda", "password" : "mukunda123", "email" : "mukndareddy94@gmail.com", "mobile" : "7799066345", "emp_id" : "1234", "adminstatus" : false, "notification" : true, "loginstatus" : true } { "_id" : ObjectId("5b0b9a384f7d4fbc4bfcf53a"), "name" : "sravani", "password" : "123456", "email" : "korupoju.sravani32@gmail.com", "mobile" : "7794821994", "emp_id" : "1091", "adminstatus" : false, "notification" : false, "loginstatus" : false } { "_id" : ObjectId("5b0b9a384f7d4fbc4bfcf53b"), "adminstatus" : false, "email" : "santhoshi.medasani@gmail.com", "emp_id" : "9045", "loginstatus" : false, "mobile" : "9885671111", "name" : "santoshi", "notification" : false, "password" : "123456" } { "_id" : ObjectId("5b0b9a384f7d4fbc4bfcf53c"), "name" : "kartheek", "password" : "kartheek@123", "email" : "karteek.muppidi@gmail.com", "mobile" : "9701629900", "emp_id" : "1083", "adminstatus" : true, "notification" : false, "loginstatus" : true } { "_id" : ObjectId("5b0b9a384f7d4fbc4bfcf53d"), "name" : "yeshwanth", "password" : "123456", "email" : "yeshraj@gmail.com", "mobile" : "8989898989", "emp_id" : "8989", "adminstatus" : false, "notification" : false, "loginstatus" : true }

 Comments   
Comment by siddareddy [ 29/May/18 ]

thank you

Comment by Stennie Steneker (Inactive) [ 29/May/18 ]

Hi Sidda,

The SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience.

I can see you've already started a discussion on the mongodb-user group (https://groups.google.com/forum/#!topic/mongodb-user/Nez1x29mKu8), which would be a more appropriate forum for follow-up. I would suggest including some details of what you have tried (such as a code example in Java), the relevant version details for your MongoDB Java driver and server versions, and any error message or issue encountered.

Regards,
Stennie

Generated at Thu Feb 08 04:39:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.