Currently, the "cursor-related" methods (Query.start_at, Query.start_after, Query.end_before, Query.end_at) expect their document_fields argument to be either a DocumentSnapshot instance or a dict, where the fields in either are used to compute the actual values for the cursor, using the query's order_by fields.
However, the cross-language conformance tests also expect to be able to pass a raw sequence of values for document_fields, which are then used to match the query's order_by. We need to update the docstrings for these methods to indicate that a list is allowed, and fix the query._cursor_pb helper to deal with that case.
The corresponding Collection methods also need their docstrings adjusted (they just forward arguments through to a new query object).
Currently, the "cursor-related" methods (
Query.start_at,Query.start_after,Query.end_before,Query.end_at) expect theirdocument_fieldsargument to be either aDocumentSnapshotinstance or adict, where the fields in either are used to compute the actual values for the cursor, using the query'sorder_byfields.However, the cross-language conformance tests also expect to be able to pass a raw sequence of values for
document_fields, which are then used to match the query'sorder_by. We need to update the docstrings for these methods to indicate that a list is allowed, and fix thequery._cursor_pbhelper to deal with that case.The corresponding
Collectionmethods also need their docstrings adjusted (they just forward arguments through to a new query object).