Closed hallywang closed 3 years ago
The problem seems to be the order of .use, if .use('entity') comes before use('mongo-store') it works.
The below
var seneca = require('seneca')();
seneca.use("entity")
.use('mongo-store', {
uri: 'mongodb://localhost:27017/dbname'
})
seneca.ready(function () {
var apple = seneca.make$('fruit')
apple.name = 'Pink Lady'
apple.price = 0.99
apple.save$(function (err,apple) {
console.log( "apple.id = "+apple.id )
})
})
update readme to note this
@rjrodger Looks like this issue is already addressed.