diff --git a/NodeAPI/index.js b/NodeAPI/index.js index 46e57cc3e68bd5b4d6832345b5a567432df83eef..064b4a66be57ec7daec185d34513802ce3fbb40e 100644 --- a/NodeAPI/index.js +++ b/NodeAPI/index.js @@ -41,7 +41,7 @@ app.post('/predict', (req,res) => { if(err) { return console.dir(err); } // Create collection if does not exist - var collection = db.createCollection('Pred_Records'); + var collection = db.db('ClusterNLP').collection('Pred_Records'); // Get the data to be stored var plot = req.body.plot;