-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching entities by an integer value does not seem to work #119
Comments
I expect it is something to do with the individual property data types. Are you binding the parameters, or just passing that GQL string directly in? Could you share the code? |
Yeah it seems it works with binding, but string seem to work regardless: $obj_book_schema = (new Schema('Book'))
Thanks. |
If you want to use your own unique ID, then you are better using the KeyName, rather than an indexed property. Let me know if you need more help on this. |
It's used to log various ids from MySQL so I don't think it's appropriate. |
Hi,
Using fetchAll..
This works:
SELECT * FROM Book WHERE isbn = '1853260304';
This does not work:
SELECT * FROM Book WHERE book_id= 300;
I get an empty array as result.
Both properties are indexes.
Query works directly on Google Cloud Datastore GQL.
Am I missing something?
The text was updated successfully, but these errors were encountered: