Order Results by Priority & Group Values & then filter results
问题 Here is my DynamoDB current data: My goal is to create a query which filters the result in the Group Set (to like "Default") , and then sorts by priority and then filters the results to those where loggedIn == true and status == idle. In SQL it would be something like SELECT * FROM userstatustable WHERE group == "default" AND loggedIn == true AND status == "idle" ORDER BY priority DESC LIMIT 1 How would I create a query to do this? Below is my serverless.yml file description of the DynamoDB