Hi there,
I was debugging a different topic in my Foxx app and decided to give the
'allowImplicit' flag a try (to make sure that all the collections I read in
my transactions were declared). But I found that, even if all collections
are declared, adding this flag would raise an error. Here is a simple
example to reproduce that (tested on 2.8.7):
controller.post('/foxxdebug', function (req, res) {
var from = 'foxxdebug/123';
var to = 'foxxdebug/456';
db._executeTransaction({
collections: {
read: ['foxxdebug'],
write: ['foxxdebug'],
allowImplicit: false
},
action: function () {
db.foxxdebug.insert(from, to, {});
var fromCount = db.foxxdebug.byExample({ _from: from }).count();
var toCount = db.foxxdebug.byExample({ _to: to }).count();
res.json({ fromCount: fromCount, toCount: toCount });
}
});
});
Note that the 'foxxdebug' was created, but this call would always fail with
the 'unregistered collection used in transaction' error!
Thomas
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.