Complete the code to create a condition expression that checks if the attribute "status" equals "active".
const condition = Attr('status').[1]('active');
The eq method creates a condition expression that checks if the attribute equals the given value.
Complete the code to create a filter expression that checks if the attribute "age" is greater than 30.
const filter = Attr('age').[1](30);
The gt method creates a condition expression that checks if the attribute is greater than the given value.
Fix the error in the code to check if the attribute "name" begins with "A".
const condition = Attr('name').[1]('A');
The beginsWith method checks if a string attribute starts with the given substring.
Fill both blanks to create a condition expression that checks if "score" is between 50 and 100.
const condition = Attr('score').[1](50).[2](100);
The between method is used with two values to check if an attribute is within a range.
Fill all three blanks to create a filter expression that checks if "category" equals "books" and "price" is less than 20.
const filter = Attr([1]).[2]('books').and(Attr([3]).lt(20));
We check if the 'category' attribute equals 'books' using eq, and if 'price' is less than 20 using lt.