[英]Firestore query documents startsWith a specific character
從我的頭頂,如果對字母“I”感興趣:
var lower = 'I';
var upper = String.fromCharCode(lower.codeUnitAt(0) + 1);
itemRef
.doc(this.itemsId)
.collection("october")
.where(firebase.firestore.FieldPath.documentId() ">=", lower)
.where(firebase.firestore.FieldPath.documentId() "<", upper)
不確定,在字母 Z 的情況下會發生什么。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.