Skip to content

Commit

Permalink
fix: expose Count, FieldFilter, Or, and And to firestore module (#706)
Browse files Browse the repository at this point in the history
Expose the `Count`, `FieldFilter`, `Or`, and `And` to the `firestore` module from the `firestore_v1`.
  • Loading branch information
Mariatta authored Apr 26, 2023
1 parent 532aff8 commit 8eb2c88
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions google/cloud/firestore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

__version__ = package_version.__version__

from google.cloud.firestore_v1 import And
from google.cloud.firestore_v1 import ArrayRemove
from google.cloud.firestore_v1 import ArrayUnion
from google.cloud.firestore_v1 import AsyncClient
Expand All @@ -29,18 +30,21 @@
from google.cloud.firestore_v1 import AsyncTransaction
from google.cloud.firestore_v1 import AsyncWriteBatch
from google.cloud.firestore_v1 import Client
from google.cloud.firestore_v1 import CountAggregation
from google.cloud.firestore_v1 import CollectionGroup
from google.cloud.firestore_v1 import CollectionReference
from google.cloud.firestore_v1 import DELETE_FIELD
from google.cloud.firestore_v1 import DocumentReference
from google.cloud.firestore_v1 import DocumentSnapshot
from google.cloud.firestore_v1 import DocumentTransform
from google.cloud.firestore_v1 import ExistsOption
from google.cloud.firestore_v1 import FieldFilter
from google.cloud.firestore_v1 import GeoPoint
from google.cloud.firestore_v1 import Increment
from google.cloud.firestore_v1 import LastUpdateOption
from google.cloud.firestore_v1 import Maximum
from google.cloud.firestore_v1 import Minimum
from google.cloud.firestore_v1 import Or
from google.cloud.firestore_v1 import Query
from google.cloud.firestore_v1 import ReadAfterWriteError
from google.cloud.firestore_v1 import SERVER_TIMESTAMP
Expand All @@ -55,6 +59,7 @@

__all__: List[str] = [
"__version__",
"And",
"ArrayRemove",
"ArrayUnion",
"AsyncClient",
Expand All @@ -65,18 +70,21 @@
"AsyncTransaction",
"AsyncWriteBatch",
"Client",
"CountAggregation",
"CollectionGroup",
"CollectionReference",
"DELETE_FIELD",
"DocumentReference",
"DocumentSnapshot",
"DocumentTransform",
"ExistsOption",
"FieldFilter",
"GeoPoint",
"Increment",
"LastUpdateOption",
"Maximum",
"Minimum",
"Or",
"Query",
"ReadAfterWriteError",
"SERVER_TIMESTAMP",
Expand Down
8 changes: 8 additions & 0 deletions google/cloud/firestore_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
from google.cloud.firestore_v1._helpers import LastUpdateOption
from google.cloud.firestore_v1._helpers import ReadAfterWriteError
from google.cloud.firestore_v1._helpers import WriteOption
from google.cloud.firestore_v1.base_aggregation import CountAggregation
from google.cloud.firestore_v1.base_query import And
from google.cloud.firestore_v1.base_query import FieldFilter
from google.cloud.firestore_v1.base_query import Or
from google.cloud.firestore_v1.async_batch import AsyncWriteBatch
from google.cloud.firestore_v1.async_client import AsyncClient
from google.cloud.firestore_v1.async_collection import AsyncCollectionReference
Expand Down Expand Up @@ -107,6 +111,7 @@

__all__: List[str] = [
"__version__",
"And",
"ArrayRemove",
"ArrayUnion",
"AsyncClient",
Expand All @@ -117,18 +122,21 @@
"AsyncTransaction",
"AsyncWriteBatch",
"Client",
"CountAggregation",
"CollectionGroup",
"CollectionReference",
"DELETE_FIELD",
"DocumentReference",
"DocumentSnapshot",
"DocumentTransform",
"ExistsOption",
"FieldFilter",
"GeoPoint",
"Increment",
"LastUpdateOption",
"Maximum",
"Minimum",
"Or",
"Query",
"ReadAfterWriteError",
"SERVER_TIMESTAMP",
Expand Down

0 comments on commit 8eb2c88

Please sign in to comment.