Const
Zod schema for query parameters This schema ensures that the query parameters are valid
const query = querySchema.parse({ page: 1, limit: 10, search: 'hello',});console.log(query); // { page: 1, limit: 10, search: 'hello' } Copy
const query = querySchema.parse({ page: 1, limit: 10, search: 'hello',});console.log(query); // { page: 1, limit: 10, search: 'hello' }
Zod schema for query parameters This schema ensures that the query parameters are valid