-
Notifications
You must be signed in to change notification settings - Fork 655
How are query start cursorTokens used? #1208
Copy link
Copy link
Closed
Labels
api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.
Description
My application is using express and I'm having some troubles getting the latest ~0.30.0 releases to return a cursor value I can pass back to the client for usage. If I recall correctly the previous releases were using a base64 string. What kind of cursorToken should I be passing a start query now?
https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.30.2/datastore/query?method=start
datastore.runQuery(
datastore.createQuery('User').start(???).limit(1),
function(error, entities, cursor) {
// cursor used to return base64 startVal
}
);
Maybe I should manually convert it myself now?
new Buffer(cursor.startVal).toString('base64')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.