Skip to content

Commit

Permalink
doc(datastore): Add document around FitlerField (#7536)
Browse files Browse the repository at this point in the history
* doc(datastore): Add document around FitlerField

* Update datastore/query.go

Co-authored-by: Baha Aiman <bahaaiman@google.com>

---------

Co-authored-by: Baha Aiman <bahaaiman@google.com>
  • Loading branch information
daisy1754 and bhshkh committed Mar 5, 2024
1 parent 07ece0f commit d320daa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datastore/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ func (q *Query) Filter(filterStr string, value interface{}) *Query {
// Field names which contain spaces, quote marks, or operator characters
// should be passed as quoted Go string literals as returned by strconv.Quote
// or the fmt package's %q verb.
// For "in" and "not-in" operator, use []interface{} as value. For instance
// query.FilterField("Month", "in", []interface{}{1, 2, 3, 4})
func (q *Query) FilterField(fieldName, operator string, value interface{}) *Query {
return q.FilterEntity(PropertyFilter{
FieldName: fieldName,
Expand Down

0 comments on commit d320daa

Please sign in to comment.