fusion-plugin-apollo icon indicating copy to clipboard operation
fusion-plugin-apollo copied to clipboard

Log errors

Open slonoed opened this issue 6 years ago • 2 comments

I want to continue a discussion from this PR https://github.com/fusionjs/fusion-plugin-apollo/pull/166

The previous version has the ability to specify formatError function, which allows to log errors and used by me only for logging. The new version doesn't have anything to log errors. This is the critical feature.

I want to get an official decision will it be implemented (in some way or another). If yes, when?

As a workaround, I can implement my custom wrapper on top of all resolvers.

slonoed avatar Mar 27 '19 11:03 slonoed

Thank you for reaching out! The solution we are going to implement is logging via graphql-middleware. Originally, I was planning on building that into this plugin, however it actually works better as an enhancer on the GraphQLSchemaToken. I'm working on building one right now, so we will have a solution very soon. I will put you as a subscriber on the diff.

ganemone avatar Mar 28 '19 21:03 ganemone

@ganemone please, ping me if you need help with this. Implementation or testing.

slonoed avatar Mar 29 '19 11:03 slonoed