Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const resolveList = ({ model }: Object) => async (
entry: any,
args: Object,
context: Object,
info: Object
) => {
try {
const { entries, meta } = await findEntries({ model, args, context, info });
return new ListResponse(entries, meta);
} catch (err) {
return new ListErrorResponse({ code: err.code || "RESOLVE_LIST", error: err.message });
}
};