Skip to content

Commit b7e94ff

Browse files
committed
feat: endAt impl
1 parent db24d5a commit b7e94ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/firestore/lib/modular/query.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ export function endAt(...fieldValues) {
140140
return new QueryConstraint('endAt', ...fieldValues);
141141
}
142142

143+
/**
144+
* @param {DocumentSnapshot} snapshot
145+
* @returns {QueryEndAtConstraint}
146+
*/
147+
export function endAt(snapshot){
148+
return new QueryConstraint('endAt', snapshot);
149+
}
150+
143151
/**
144152
* Creates a QueryEndAtConstraint that modifies the result set to end before the provided fields relative to the order of the query.
145153
* The order of the field values must match the order of the order by clauses of the query.

0 commit comments

Comments
 (0)