Next you’ll want to add a helper function in your resolvers.
export enum QueryStatus {
success = 'SUCCESS',
notFound = 'NOT_FOUND',
error = 'ERROR',
}
export const success = (node: Customer) => ({ status: QueryStatus.success, node });
export const notFound = (message: string) => ({ status: QueryStatus.notFound, message });
export const error = (message: string) => ({ status: QueryStatus.error, message });