Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/datastore/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,17 @@ DatastoreRequest.prototype.delete = function(keys, callback) {
* //-
* transaction.runQuery(query)
* .on('data', function (entity) {});
*
* //-
* // A keys-only query returns just the keys of the result entities instead of
* // the entities themselves, at lower latency and cost.
* //-
* var keysOnlyQuery = dataset.createQuery('Lion').select('__key__');
*
* transaction.runQuery(query, function(err, entities, endCursor, callback) {
* // entities[].key = Key object
* // entities[].data = Empty object
* });
*/
DatastoreRequest.prototype.runQuery = function(q, callback) {
var that = this;
Expand Down