Client Side

    1. create fetch
    1. add second parameter as an object
    1. provide method: 'POST'
    1. add headers :{'content-type':'application/json'}
    1. add body: JSON.Stringify(user)

Read

  1. Create a cursor = userCollection.find()
  2. const result = await cursor.toArray()