Steve
01/31/2022, 4:32 PMvar db = getmongoservice(application.settings.mongoDS).db("newdb"); // create a db
db.createCollection("colFindDemo"); // create a collection
db.colFindDemo.insertMany([
{ "_id" : 1, "name" : "Ian Gillan", "instrument" : "Vocals","born": 1945 },
{ "_id" : 2, "name" : "Ian Paice", "instrument" : "Drums", "born" : 1948 },
{ "_id" : 3, "name" : "Roger Glover", "instrument" : "Bass", "born" : 1945 },
{ "_id" : 4, "name" : "Steve Morse", "instrument" : "Guitar", "born" : 1954 },
{ "_id" : 5, "name" : "Don Airey", "instrument" : "Keyboards", "born" : 1948 },
{ "_id" : 6, "name" : "Jeff Martin", "instrument" : "Vocals", "born" : 1969 },
{ "_id" : 7, "name" : "Jeff Burrows", "instrument" : "Drums", "born" : 1968 },
{ "_id" : 8, "name" : "Stuart Chatwood", "instrument" : "Bass", "born" : 1969 }
]);
// return all documents
var col = db.colFindDemo.find();
writeDump(var=col, label="col");
abort;
The createCollection call seems to put itself into an infinite loop condition and eventually crashes with an out of stack message. Any ideas? Or any better examples somewhere?Mark Takata (Adobe)
01/31/2022, 4:39 PMSteve
01/31/2022, 4:40 PMSteve
01/31/2022, 9:20 PMSteve
01/31/2022, 9:22 PMMark Takata (Adobe)
01/31/2022, 9:24 PM