I'm attempting to run a very simple query from Javascript against the Google Cloud Datastore, and no matter what I do, it always seems to just return empty results. My request is being made from a fully authenticated (OAuth2) GAPI client. Here's the relevant code:
var gqlQuery = 'SELECT * FROM swell';
var request = gapi.client.datastore.datasets.runQuery({
datasetId : datasetId,
gqlQuery: {queryString: gqlQuery}
});
request.execute(function(err, result) {
...... Process the results ......
}
I'm using a datasetId that I know is valid. I've tried switching err and result in the callback function, but it doesn't help. No matter what I do, my err and result callback parameters just seem to be blank object collections.