2d6afd5eac5e22fa564703a2dd2989c785007e55,firestore/cloud-client/snippets.py,,get_simple_query,#,239

Before Change


    docs = db.collection(u"cities").where(u"capital", u"==", True).stream()

    for doc in docs:
        print(u"{} => {}".format(doc.id, doc.to_dict()))
    // [END get_simple_query]


def array_contains_filter():

After Change


    docs = db.collection(u"cities").where(u"capital", u"==", True).stream()

    for doc in docs:
        print(f"{doc.id} => {doc.to_dict()}")
    // [END get_simple_query]


def array_contains_filter():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2d6afd5eac5e22fa564703a2dd2989c785007e55
Time: 2020-06-05
Author: sdlin@users.noreply.github.com
File Name: firestore/cloud-client/snippets.py
Class Name:
Method Name: get_simple_query


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2d6afd5eac5e22fa564703a2dd2989c785007e55
Time: 2020-06-05
Author: sdlin@users.noreply.github.com
File Name: firestore/cloud-client/snippets.py
Class Name:
Method Name: quickstart_get_collection


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2d6afd5eac5e22fa564703a2dd2989c785007e55
Time: 2020-06-05
Author: sdlin@users.noreply.github.com
File Name: firestore/cloud-client/snippets.py
Class Name:
Method Name: get_full_collection


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2d6afd5eac5e22fa564703a2dd2989c785007e55
Time: 2020-06-05
Author: sdlin@users.noreply.github.com
File Name: firestore/cloud-client/snippets.py
Class Name:
Method Name: collection_group_query


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2d6afd5eac5e22fa564703a2dd2989c785007e55
Time: 2020-06-05
Author: sdlin@users.noreply.github.com
File Name: firestore/cloud-client/snippets.py
Class Name:
Method Name: array_contains_filter