I'm getting this error by a simple example:
error:
Error (E_UNKNOWN) :: Encountered an unexpected error
: No find() method defined in adapter!
by this code example:
var Waterline = require('waterline');
var sqliteWaterline = require('waterline-sqlite3');
var config = require('../config/config');
var serverMod = require('../model/servers');
// init waterline
var waterline = new Waterline();
serverMod.connections = 'sqlite';
var server = Waterline.Collection.extend(serverMod);
waterline.loadCollection(server);
waterline.initialize(config, function(err, models) {
models.collections.data.find(function(err, servers) {
console.log(err, servers);
});
})
I had a look into the adapter and there is a find method also ig i am checkign with typeof like this
typeof(models.collections.data.find)
it return function.
any hints why this happens?
i am using node version v6.4.0. and waterline 0.12.2
thanks
I'm getting this error by a simple example:
error:
by this code example:
I had a look into the adapter and there is a find method also ig i am checkign with typeof like this
it return function.
any hints why this happens?
i am using node version v6.4.0. and waterline 0.12.2
thanks