Fields Select

Lets API requests pick which fields come back, like GraphQL field selection

Community 336 27/wk MIT v1.2.2

Installation

pnpm add @payload-enchants/fields-select

About

Fields Select lets you choose which fields come back from Payload's Local API and REST API responses, so a request returns only the data it needs. You list the fields you want, including fields inside group and array fields and fields of related documents, and everything else is left out of the response.

It also sets a default field list for relationship fields, so a page that pulls in linked documents receives only their id, slug and title instead of the full records. On content-heavy sites with many related collections, this can noticeably shrink response sizes.

Package info

Package name
@payload-enchants/fields-select
Latest version
1.2.2
Unpacked size
39 kB
License
MIT
Weekly downloads
27
Last publish
Jul 16, 2024

More from r1tsuu

View profile

Fills localized Payload content in other locales with Google, OpenAI or copy resolvers

Typed REST client for Payload with the same query syntax as the Local API

Caches local Payload reads for pages and clears them on content changes

Lets each collection compute its admin document title from a custom function

Adds SEO meta fields to collections with OpenAI-generated titles and descriptions

Shows each localized field's value in every locale tab in the admin panel

Similar plugins

More in Devtools

Chat agent that composes and edits Payload pages from your block library

Exposes Payload collections and globals to AI agents through the Model Context Protocol

Lets AI assistants read and edit Payload content over MCP with scoped API keys

Editorial suite that lets teams run a Payload site through MCP tools and AI assistants

Typed block registry and React Server Component renderer for Payload blocks

Runs Payload CMS admin and APIs under vinext, on Node or Cloudflare Workers