# DO NOT MODIFY. This file was generated by
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.

# A Where clause with an inequality results in an OrderBy clause on that clause's
# path, if there are no other OrderBy clauses.

description: "query: cursor method with a document snapshot and an inequality where clause"
query: <
  coll_path: "projects/projectID/databases/(default)/documents/C"
  clauses: <
    where: <
      path: <
        field: "a"
      >
      op: "<="
      json_value: "3"
    >
  >
  clauses: <
    end_before: <
      doc_snapshot: <
        path: "projects/projectID/databases/(default)/documents/C/D"
        json_data: "{\"a\": 7, \"b\": 8}"
      >
    >
  >
  query: <
    from: <
      collection_id: "C"
    >
    where: <
      field_filter: <
        field: <
          field_path: "a"
        >
        op: LESS_THAN_OR_EQUAL
        value: <
          integer_value: 3
        >
      >
    >
    order_by: <
      field: <
        field_path: "a"
      >
      direction: ASCENDING
    >
    order_by: <
      field: <
        field_path: "__name__"
      >
      direction: ASCENDING
    >
    end_at: <
      values: <
        integer_value: 7
      >
      values: <
        reference_value: "projects/projectID/databases/(default)/documents/C/D"
      >
      before: true
    >
  >
>
