Skip to content

Need example using compositeFilter #1019

Description

@bradabrams

Given a set of keys, I'd like to return in one batch all the entities with those keys. Looks like compositeFilter might be the way to go, but I can't figure out how to use them with gcloud-node.. any suggestions or docs for this?

https://cloud.google.com/datastore/docs/concepts/queries#Datastore_Filters

Activity

  1. stephenplusplus commented on Dec 13, 2015

    @stephenplusplus
    Contributor

    We have dataset.get() which can take an array of keys and return the entities that match.

    For queries, you can use filters: https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.26.0/datastore/query?method=filter, which are formatted into one compositeFilter when the API request is made.

    Are either of those what you're looking for?

    // @pcostell

  2. bradabrams commented on Dec 14, 2015

    @bradabrams
    Author

    Perfect -- thanks. I somehow missed that in the docs

  3. jgeewax commented on Dec 14, 2015

    @jgeewax
    Contributor

    Cool - closing this out. Feel free to re-open if you have any ideas of how to improve the docs :)

  4. added a commit that references this issue on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions