import { connectionFromPromisedArray } from 'common/utils' ; import { UserToDraftsResolver } from 'definitions' ; const resolver = ( { id } , { input } , { dataSources : { draftService } } ) => connectionFromPromisedArray ( draftService . findUnpublishedByAuthor ( id ) , input ) ; export default resolver ;