UNPKG

keystone

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

33 lines (32 loc) 779 B
module.exports = { Field: require('../RelationshipField'), Filter: require('../RelationshipFilter'), readme: require('fs').readFileSync('./fields/types/relationship/Readme.md', 'utf8'), section: 'Miscellaneous', spec: [{ label: 'Single Relationship', path: 'relationship', // createInline isn't available in the explorer because it depends on // real list definitions and the FieldTypes bundle // createInline: true, refList: { key: 'Flavour', path: 'flavours', plural: 'Flavours', singular: 'Flavour', }, value: '', }, { label: 'Many Relationship', path: 'manyrelationship', many: true, // createInline: true, refList: { key: 'Flavour', path: 'flavours', plural: 'Flavours', singular: 'Flavour', }, value: '', }], };