We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79e3d2b commit addbcbfCopy full SHA for addbcbf
snippets/firestore/firestore_pipelines.py
@@ -21,6 +21,24 @@
21
22
# pylint: disable=invalid-name
23
24
+def type_generic_functions():
25
+ from google.cloud.firestore_v1.pipeline_expressions import Field, Constant
26
+ # [START type_function]
27
+ Field.of("rating").type()
28
+ # [END type_function]
29
+
30
+ # [START concat_function]
31
+ Constant.of("Author ID: ").concat(Field.of("authorId"))
32
+ # [END concat_function]
33
34
+ # [START length_function]
35
+ Field.of("tags").length()
36
+ # [END length_function]
37
38
+ # [START reverse_function]
39
+ Field.of("tags").reverse()
40
+ # [END reverse_function]
41
42
def query_explain():
43
# [START query_explain]
44
from google.cloud.firestore import Query, FieldFilter
0 commit comments