Generates an OpenAPI 3 document and Swagger UI for every endpoint in a Payload config
Query
Type-safe filters, field selection and reusable queries
Installation
pnpm add payload-query About
Payload Query gives you typed filters for Payload collections, so a misspelled field, an unsupported operator or a wrong value shows up as a TypeScript error instead of a failed request at runtime. Filters can be defined ahead of time with placeholders that get filled in later, for example with the id of the logged-in user. The package also lets you choose which fields come back from a query, both in the REST API and in the Local API, so responses carry only the data a page needs.
Package info
- Package name
payload-query- Latest version
1.0.2- Unpacked size
- 19 kB
- License
- MIT
- Weekly downloads
- 10
- Last publish
- Apr 18, 2023
More from teunmooij
View profileCommand-line generator that writes an OpenAPI 3 document
Generates OpenAPI 3.0 documents for the REST endpoints of a Payload project
Role-based access control for user collections, with reusable access rules and query filters
Similar tools
More in API clients & SDKsType-safe client for the Payload REST API with CRUD, auth and file uploads
Framework-agnostic SDK for inline visual editing on Payload-powered sites
Angular query builder that sends list queries to Payload and other backends as signals
Registers custom drag-and-drop blocks for the Olgax page builder
Lets Puck components pull filtered Payload collection items into a resolved prop
Signed client for the VAP API, plus a Payload plugin for storefront sign-in and checkout