Skip to content

Commit

Permalink
πŸ› hide when null
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Jul 28, 2023
1 parent 0b18fa3 commit ba88564
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aws/dynamo.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ func (w *DynamoIndexWheres) Add(field string, fType string, value interface{}) {
*w = append(*w, DynamoIndexWhere{Field: field, Type: fType, Value: value})
}

// hide query if not specified
type DynamoIndexResults struct {
NextToken *string
Items interface{}
Query *string
NextToken *string `json:"next_token,omitempty"`
Items interface{} `json:"items"`
Query *string `json:"query,omitempty"`
}

func DynamoIndex(region string, table string) DynamoIndexQuery {
Expand Down

0 comments on commit ba88564

Please sign in to comment.