-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api/v1/attribute_list_params: implement support for Attribute Operators
Querying multiple Attributes would always use the 'AND' operator in the SQL query, this is limiting and required to support the 'OR' operator when required by the client. This change extends the AttributeListParams to support an Attribute Operator - 'and' 'or' to enable the client to define how multiple Attributes should be SQL queried. This change is backwards compatible and defaults to 'and' which is the previous behaviour. The client can query multiple attributes and specify which of them should looked up with an OR, by specifying a final '~' separated value - 'or'. "attr=hollow.versioned~a.name~like~nemo&attr=hollow.versioned~a.name~like~bluefin~or"
- Loading branch information
Showing
3 changed files
with
108 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters