Clever / wag

sWAGger - Web API Generator
Apache License 2.0
77 stars 6 forks source link

Filtering dynamo #420

Closed garrgordon closed 2 years ago

garrgordon commented 2 years ago

Updates various portions of the dynamo db autogenerated code to enable filtering with additional fields when querying the primary index.

  1. Adds support to parse AttributeDefinitions in .yml files
  2. Adds FIlterValues to input model for dynamoDB queries which allows developers to specify any attribute that is not one of the keys in the primary index as well as values that the attribute should be compared to.
  3. Adds FilterExpression to input model to allow developers to build their own filtering expressions

Testing: Added unit test for filtering in the auto generated tests Tested filtering locally with il-user-service hitting the MFAConfig table. Worked as expected

Todo: