import { ErrorResponse , Response } from "@webiny/handler-graphql/responses" ; import { CmsEntryResolverFactory as ResolverFactory } from "~/types" ; export const resolveGet = ( { model } ) => async ( _ , args , context ) => { try { const entry = await context . cms . getEntryById ( model , args . revision ) ; return new Response ( entry ) ; } catch ( e ) { return new ErrorResponse ( e ) ; } } ;