From 7a56edf0e36e1e23ac3f2273c990e4e8bfbf6f6d Mon Sep 17 00:00:00 2001 From: 54m <30588003+54m@users.noreply.github.com> Date: Sat, 6 Feb 2021 03:31:36 +0900 Subject: [PATCH] docs(firestore): added `!=` and `not-in` to godoc (#3673) --- firestore/query.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firestore/query.go b/firestore/query.go index 8e731d826185..fd532d3f69c5 100644 --- a/firestore/query.go +++ b/firestore/query.go @@ -95,8 +95,8 @@ func (q Query) SelectPaths(fieldPaths ...FieldPath) Query { // A Query can have multiple filters. // The path argument can be a single field or a dot-separated sequence of // fields, and must not contain any of the runes "˜*/[]". -// The op argument must be one of "==", "<", "<=", ">", ">=", "array-contains", -// "array-contains-any" or "in". +// The op argument must be one of "==", "!=", "<", "<=", ">", ">=", +// "array-contains", "array-contains-any", "in" or "not-in". func (q Query) Where(path, op string, value interface{}) Query { fp, err := parseDotSeparatedString(path) if err != nil { @@ -109,8 +109,8 @@ func (q Query) Where(path, op string, value interface{}) Query { // WherePath returns a new Query that filters the set of results. // A Query can have multiple filters. -// The op argument must be one of "==", "<", "<=", ">", ">=", "array-contains", -// "array-contains-any" or "in". +// The op argument must be one of "==", "!=", "<", "<=", ">", ">=", +// "array-contains", "array-contains-any", "in" or "not-in". func (q Query) WherePath(fp FieldPath, op string, value interface{}) Query { q.filters = append(append([]filter(nil), q.filters...), filter{fp, op, value}) return q