Skip to content

Commit

Permalink
fix(queryCollection): omit filter and sort if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
gabemeola authored and kjk committed Oct 31, 2024
1 parent a1c6c7d commit bc4daef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_queryCollection.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ type QueryCollectionResponse struct {
type LoaderReducer struct {
Type string `json:"type"` //"reducer"
Reducers map[string]interface{} `json:"reducers"`
Sort []QuerySort `json:"sort"`
Filter map[string]interface{} `json:"filter"`
Sort []QuerySort `json:"sort,omitempty"`
Filter map[string]interface{} `json:"filter,omitempty"`
SearchQuery string `json:"searchQuery"`
UserTimeZone string `json:"userTimeZone"` // e.g. "America/Los_Angeles" from User.Locale
}
Expand Down

0 comments on commit bc4daef

Please sign in to comment.