Correct way to return error in custom service through GraphQL

Strapi v4

const { ApplicationError } = require(’@strapi/utils’).errors;

throw new ApplicationError(‘Not found’,4xx);

1 Like