Skip to content
KeystoneJS LogoKeystoneJS
👋🏻 Keystone 5 has officially moved to maintenance only. For the latest release of Keystone please visit the Keystone website.

singleton Plugin

This plugin makes a list singleton by allowing only one item in the list. Useful for list which must contain only one items.


const { singleton } = require('@keystonejs/list-plugins');

keystone.createList('ListWithPlugin', {
  fields: {...},
  plugins: [

On this page

  • Usage
Edit on GitHub