I have a 2 kinds of entity;
- Parent
- Child
In the above kinds of entity, a Child is associated with a parent key.
I need to filter for a child based only on a child key as I dont have the parent key, only the child key/id.
const query = datastore.createQuery('Child')
.filter('__key__', '=', datastore.key(['Child', 123]))
The strange thing is, if I pass a ">" operator it will return records, however I need an exact key match, as well as an explanation.
If I have to add a composite index, how would I do so for the above relation?