Skip to content

Conversation

jcscottiii
Copy link
Collaborator

The datastore library has marked Filter as deprecated. By moving to FilterEntity, we can use more advanced queries as well.

This commit introduces a new EntityFilter type. That type just wraps datastore.EntityFilter because there are no exposed methods on datastore.EntityFilter for us to manually declare.

In order to create an EntityFilter, another type called FilterBuilder is created which will allow consumers to make a particular Filter that reteurns an EntityFilter.

More about the deprecation here: https://pkg.go.dev/cloud.google.com/go/datastore#Query.Filter

The datastore library has marked Filter as deprecated. By moving to
FilterEntity, we can use more advanced queries as well.

This commit introduces a new EntityFilter type. That type just wraps
datastore.EntityFilter because there are no exposed methods on
datastore.EntityFilter for us to manually declare.

In order to create an EntityFilter, another type called FilterBuilder is
created which will allow consumers to make a particular Filter that
reteurns an EntityFilter.

More about the deprecation here: https://pkg.go.dev/cloud.google.com/go/datastore#Query.Filter
@jcscottiii jcscottiii force-pushed the migrate-from-deprecated-filter branch from aab6a25 to d1daaf0 Compare February 5, 2024 19:45
@jcscottiii jcscottiii closed this Jul 16, 2025
@jcscottiii jcscottiii reopened this Jul 16, 2025
@jcscottiii jcscottiii closed this Jul 17, 2025
@jcscottiii jcscottiii reopened this Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant