import { FieldConfig } from 'app/schema/definitions' ; import { CustomFieldID } from 'app/schema/types/Scalars' ; import { CustomFieldTC } from 'app/schema/entities/CustomFieldTC' ; import { customFieldFindByIds } from 'app/vendor/customFields/customFieldFindByIds' ; export default { type : CustomFieldTC . NonNull . List , args : { ids : CustomFieldID . NonNull . List . NonNull , } , resolve : ( _ , args , context ) => { return customFieldFindByIds ( { ids : args . ids } , context ) ; } , extensions : { complexity : ( { args , childComplexity } ) => childComplexity * ( args . ids . length || 100 ) , } , } as FieldConfig < { ids : string [ ] ; } > ;