title: Promise findItem using mongodb and node.js
body: <p>I am new to mongodb, node.node.js after learning that this platform are good for backend i decided to work on a small project that i want it to run on mongodb as its database</p>
  
  <p>And now i am working on API for my mobile application, but my challenge is i dont know how to read a single Item after creating it,</p>
  
  <p>Is there any help guys</p>
  
  <p>Here is how i am creating An Item</p>
  
  <pre><code>    'use strict';
  
  const express = require("express");
  const router  = express.Router();
  const lesson = require('../models/lesson');
  
  exports.getLessons = title =&gt; 
  
  
  //CREATE lessons
  export.createNewLesson = (image, title, grade,  lessonObjective, subject, chapter, description, username:username)=&gt;{
  
      new Prmise((resolve, reject)=&gt;{
          const newLesson = new lesson({
              image           :image,
              title           :title,
              grade           :grade,
              lessonObjective :lessonObjective,
              subject         :subject,
              chapter         :chapter,
              description     :description,
              created_at      : new Date(),
  
              const author = {
                  id: req.user._id,
                  username: req.user.username
              },
  
          })
         newLesson.save();
                 .then(()=&gt; resolve({ status: 201, message: 'successfully added new lesson'}))
                 .catch(err =&gt;{
                     if (err.code == 11000) {
              reject({ status: 409, message: 'There is a similar lesson with the same !' });
              } else {
              reject({ status: 500, message: 'Internal Server Error !' });
              }
                  });
      });
  
      // GET all lessons
      new Promise((resolve,reject) =&gt; {
  
              lesson.find({ title: title }, 
                      {   image: 1, 
                          title: 1,
                          grade: 1,
                          subject : 1,
                          chapter: 1,
                          lessonObjective: 1,
                          description: 1,
                          created_at: 1, 
                          _id: 0 
              })
  
              .then(lessons =&gt; resolve(lessons[0]))
  
              .catch(err =&gt; reject({ status: 500, message: 'Internal Server Error !' }))
  
      });
  
      // GET lesson by id
  
      //UPDATE lesson
  }
  </code></pre>