import { QueryToArticleResolver } from 'definitions' ; const resolver = async ( root , { input : { mediaHash } } , { viewer , dataSources : { draftService } } ) => { const node = await draftService . findByMediaHash ( mediaHash ) ; return node ; } ; export default resolver ;