Google Datastore Runquery provides http client to perform GQL query as like below:
POST https://datastore.googleapis.com/v1/projects/my-project-id:runQuery?key={YOUR_API_KEY}
{
"gqlQuery": {
"queryString": "SELECT * FROM User WHERE email = '[email protected]'"
}
}
But I am getting error response like:
{
"error": {
"code": 400,
"message": "Disallowed literal: '[email protected]'.",
"status": "INVALID_ARGUMENT"
}
}
But, Google Cloud Datastore Http Client
work perfectly with simple query like 'Select * from User'
.
So, How can this GQL Query be executed with Datastore Http client?