apollo-link-logger
apollo-link-logger copied to clipboard
Not Working Well on Server Side when using SSR
We are using SSR with Apollo client, as you can see the logging format is not clear and not stringify the [Array] and [Object] content:
+1 I see the same
yeah would be nice to have a config option flag for ssr
(note to self) I simply used JSON.stringify() around the restult as a temporary workaround:
logging.log("INIT", JSON.stringify(operation));
logging.log("RESULT", JSON.stringify(result));
@saerdnaer You can use JSON.stringify(object, null, 2)
to have 2 spaces indentation.