skip to Main Content

How to fetch a single record of a field from a document in MongoDb using Java(with the help of query not Loop)

{ "_id" : "0289f117-54b7-451c-915c-c7948dbad22c", "approvers" : [], "reviewers" : [], "cvoReviewers" : [], "payer" : "medicaid", "affiliationChildren" : [ { "parentProviderEmailId" : "[email protected]", "provider" : { "email" : "[email protected]", "firstName" : "si5", "lastName" : "ind", "providerId" : "628b7425d442284ba6c5d330", "providerExternalId" :…

VIEW QUESTION

How to connect mongoDB in react

Such a problem that when I try to simply connect mongoDB in react import React, {Component} from 'react'; export default class App extends Component{ componentDidMount(){ const {MongoClient} = require('mongodb'); const client = new MongoClient('mongodb+srv://dafu4k:****@cluster0.jd26aac.mongodb.net/?retryWrites=true&w=majority'); const start = async () =>…

VIEW QUESTION
Back To Top
Search