Skip to content

Commit

Permalink
Add ByID param so transformer to known
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Mar 4, 2018
1 parent 410b3ef commit 8d943dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion store/transform/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ func (s *Store) ByID(apiContext *types.APIContext, schema *types.Schema, id stri
if s.Transformer == nil {
return data, nil
}
return s.Transformer(apiContext, data, nil)
return s.Transformer(apiContext, data, &types.QueryOptions{
Options: map[string]string{
"ByID": "true",
},
})
}

func (s *Store) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error) {
Expand Down

0 comments on commit 8d943dc

Please sign in to comment.