The Add Query Filter skill streamlines the process of extending search and filtering capabilities in TypeScript-based backend services. It provides a structured approach to updating Zod schemas for validation and implementing filter logic across both MockDB and MongoDB repository layers. This ensures consistent behavior between development environments and production databases while maintaining type safety and robust test coverage for complex filtering patterns like date ranges, numeric bounds, and partial text matches.
主要功能
01Automated test generation for schemas and repository behavior
021 GitHub stars
03Best practice guidance for MongoDB indexing on filtered fields
04Zod schema extension for type-safe query parameter validation
05Support for diverse data types including enums, booleans, and date ranges
06Synchronized implementation for MockDB and MongoDB repositories
使用场景
01Implementing advanced filtering like price ranges or date-based queries
02Adding search functionality to an existing REST API endpoint
03Extending base pagination with domain-specific search criteria