(fieldPath: keyof DocumentData | FieldPath, directionStr: 'asc' | 'desc' = 'asc')
| 529 | } |
| 530 | |
| 531 | orderBy(fieldPath: keyof DocumentData | FieldPath, directionStr: 'asc' | 'desc' = 'asc'): Query { |
| 532 | if (fieldPath instanceof FieldPath) { |
| 533 | if (directionStr === 'asc') { |
| 534 | return Query.fromNative(this.native.orderBy(fieldPath.native)); |
| 535 | } else { |
| 536 | return Query.fromNative(this.native.orderBy(fieldPath.native, com.google.firebase.firestore.Query.Direction.DESCENDING)); |
| 537 | } |
| 538 | } else { |
| 539 | if (directionStr === 'asc') { |
| 540 | return Query.fromNative(this.native.orderBy(fieldPath as any)); |
| 541 | } else { |
| 542 | return Query.fromNative(this.native.orderBy(fieldPath as any, com.google.firebase.firestore.Query.Direction.DESCENDING)); |
| 543 | } |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | startAfter(snapshot: DocumentSnapshot<T>): Query; |
| 548 | startAfter(fieldValues: FieldValue[]): Query; |
nothing calls this directly
no test coverage detected