We create a query from a datastore instance (which has the auth stuff) but then don't allow people to blindly "run" the query. Is there a reason?
Code today:
var query = datastore.createQuery('Kind').filter('key', 'value');
datastore.runQuery(query).on('data', function(entity) {
// do something with the entity
});
Would be nice if....
var query = datastore.query('Kind').filter('key', 'value');
query.run().on('data', function(entity) {
// Do something with the entity
});
// And if we wanted the same query, but with different credentials/project ID/etc:
otherDatastore.runQuery(query).on(....)
We create a query from a datastore instance (which has the auth stuff) but then don't allow people to blindly "run" the query. Is there a reason?
Code today:
Would be nice if....