Closed dooma closed 11 years ago
Receive all templates is at the moment only possible with find
. But I will change the getTemplates
operation, so that you can receive all templates which a user has access to.
Now it's possible to receive all templates with getTemplates
.
self.emit('getTemplates', function (err, data) {});
// ..or
self.emit('getTemplates', [], function (err, data) {});
Fixed in 86e859253860a413805842741b2ebc59ecc6a2b1
To retrieve all templates from datasource, which is the best solution,
getTemplates
orfind
? In case we usefind
, we should pass acrudObject
, but if we usegetTemplates
, we could pass[]
and the server should return all docs.vs.