graphql-yoga: throw from resolver should not be logged
@steida commented on Mon Feb 26 2018
Maybe I am wrong, but
const throwError = (error /*: ServerError */) => {
throw new Error(JSON.stringify(error));
};
const throwNotAuthorizedError = () => throwError({ type: 'notAuthorized' });
Seems to be a recommended way how to stop resolver, but then probably this should not be logged.

About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (2 by maintainers)
@marktani if you still facing this problem you need to add
debug: falsein start options@timsuchanek @divyenduz can you describe a couple of approaches here?