post a path will create a document in mongodb