Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
parseFieldAccess(args) {
const parsedAccess = parseFieldAccess(args);
const fieldDefaults = { create: false, update: false, delete: false };
return Object.keys(parsedAccess).reduce((prev, schemaName) => {
prev[schemaName] = { ...fieldDefaults, read: parsedAccess[schemaName].read };
return prev;
}, {});
}
}
parseFieldAccess(args) {
return parseFieldAccess(args);
}