Replies: 1 comment 3 replies
-
The only reason why I am "against" replacing the JSON.parse/stringify is because the requirement of the GraphQL over WS spec is that the messages must be JSON. Meaning, if we allow custom parsers/stringifiers - we give room for differently formatted messages (not JSON basically). However, I do understand your point but am not that convinced. 😬 Are there significant performance implications? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reviver and replacer functions modify already processed values. A
parse
andstringify
option would allow for use cases such as utilizing thejson-bigint
library for parsing a technically valid json string response to a javascript object. Here's how it might look master...hgraphql:graphql-ws:masterBeta Was this translation helpful? Give feedback.
All reactions