JSFiddle - React, Tailwind, and code Playground

JavaScript

const 
	collectionOne = client.db('auction').collection('collectionOne'),
	collectionTwo = client.db('auction').collection('collectionTwo');

collectionOne.find({ id: id }).toArray((error, result) => {

  if(error) {

		console.log(error);

  } else {

    collectionTwo.find({ id: id }).toArray((error, result) => {

      if(error) {

       console.log(error);

      } else {

        // code...

      }

    });

  }

});