title: Unable to to use to my mongodb Atlas database
body: <p>I am using MongoDB Atlas as my database.
  when I search http://localhost:5000/book.<br />
  I got a error like this - MongoServerError: user is not allowed to do action [find] on [product.book].
  did I search wrong? It should be book or books.</p>
  <pre><code>const express = require('express');
  const cors = require('cors');
  require('dotenv').config();
  const port = process.env.PORT || 5000;
  const app = express();
  const { MongoClient, ServerApiVersion } = require('mongodb');
  
  // midlewarwe
  
  app.use(cors());
  app.use(express.json());
  
  const uri = `mongodb+srv://${process.env.DB_USER}:${process.env.DB_PASS}@cluster0.ibawcfn.mongodb.net/?retryWrites=true&amp;w=majority`;
  const client = new MongoClient(uri, {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    serverApi: ServerApiVersion.v1,
  });
  
  async function run() {
    try {
      await client.connect();
      const bookCollection = client.db('product').collection('book');
  
      app.get('/book', async (req, res) =&gt; {
        const query = {};
        const cursor = bookCollection.find(query);
        const books = await cursor.toArray();
        res.send(books);
      });
      // app.post('/books', async (req, res) =&gt; {
  
      //     const  newBook = req.body;
      //     const result = await bookCollection.insertOne(newBook);
      //     res.send(result);
      // });
    } finally {
    }
  }
  run().catch(console.dir);
  
  app.get('/', (req, res) =&gt; {
    res.send('hello world ');
  });
  
  app.listen(port, () =&gt; {
    console.log('listening on port ', port);
  });
  </code></pre>