import { decoratorMeta } from "../decoratorMeta" ; import { IEntityFieldMetaOptions } from "../types" ; export function Field ( options = { } ) { return ( target , fieldName ) => { decoratorMeta . addEntityFieldMeta ( target . constructor , fieldName , { generateId : false , index : false , excludeFromIndexes : [ ] , ... options , } ) ; } ; }