I'm trying to query for two different values from the same field or column. In this instance I would like to retrieve rows where the fulfilled item are true or false. Below is an example of what I'm trying to do.
const params = {
TableName: "Orders",
IndexName: 'fulfilled-shippingId-index',
KeyConditionExpression: "fulfilled = :fulfilled",
//FilterExpression : 'contains(fulfilled=true) OR fulfilled=false',
ExpressionAttributeValues: {
":fulfilled": "true",
":fulfilled": "false"
}
let me know if this isn't possible or if there would be a different way to do this through a loop or maybe just multiple requests from the application? As of now it just returns the last Expression Attribute Value.
thanks!