I'm trying to wrap and sync Firebase query methods as follows
sync.fiber(function() {
var ref = sync.await(spotsRef.once('value', sync.defer()));
console.log("ref", ref);
return ref;
});
And I get this error:
/home/my-app/node_modules/synchronize/sync.js:111
fiber.throwInto(err)
^
[object Object]
API for Firebase .once method