@websolutespa/payload-plugin-bowl
Version:
Bowl PayloadCms plugin of the BOM Repository
19 lines (18 loc) • 473 B
JavaScript
import { deepMerge } from '@websolutespa/payload-utils';
import { withText } from './withText';
export const withId = (options = {})=>{
return withText(deepMerge({
name: 'id',
unique: true,
index: true
}, options));
};
export const withIdRequired = (options = {})=>{
return withText(deepMerge({
name: 'id',
unique: true,
index: true,
required: true
}, options));
};
//# sourceMappingURL=withId.js.map