Skip to content

Commit

Permalink
docs(firestore): added != and not-in to godoc (#3673)
Browse files Browse the repository at this point in the history
  • Loading branch information
54m committed Feb 5, 2021
1 parent d45e49d commit 7a56edf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firestore/query.go
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 7a56edf

Please sign in to comment.