A structured filter representation encodes filtering criteria as data conforming to a defined schema. The client parses the desired query into that structure, while the API server evaluates it with little or no content parsing. section 22.3.1
Structured filters and SQL-style string queries can express equivalent requirements and can be transformed through serialization and parsing. The practical choice therefore centers on client usability and long-term flexibility rather than filtering capability alone. section 22.3.1
Filtering ChatRoom resources
A MongoDB-style filter such as { title: "New Chat!", userLimit: { $gt: 5 } } represents equality and comparison criteria directly as structured fields. Logical alternatives can use operators such as $in and $or. section 22.3.1
Listing 22.4 Example MongoDB structured query for filtering ChatRoom resources
db.chatRooms.find( { title: "New Chat!" } );
View the compact MongoDB query for filtering ChatRoom resources. section 22.3.1
