import { FieldConfig } from 'app/schema/definitions' ; import { CommentID } from 'app/schema/types/Scalars' ; import { commentFindByIds , FindByIdsArgs } from 'app/vendor/comment/commentFindByIds' ; import { CommentTC } from 'app/schema/entities/CommentTC' ; export default { type : CommentTC . NonNull . List , args : { ids : CommentID . NonNull . List . NonNull , plainText : 'Boolean' , } , resolve : ( _ , args , context ) => { return commentFindByIds ( args , context ) ; } , extensions : { complexity : ( { args , childComplexity } ) => childComplexity * ( args . ids . length || 100 ) , } , } as FieldConfig < FindByIdsArgs > ;