-
-
Notifications
You must be signed in to change notification settings - Fork 90
toJS method #204
Comments
I'm using GraphQL too. I think you do not need to stringify any data to JSON, you only need to call As far as I know you can pass any raw JavaScript object to the GraphQL Schema and it will serialize them for you. If you mean to have another way of passing the data to the client other than JSON I'm sure you cannot do it with GraphQL as its nature is to be a JSON API. |
Following this, i found that actually a |
Thanks for the responses. Looks like I tried to call |
I'm glad I could help. However, I'm still curious on how could we make graphql aware of the method |
Hi,
Thanks for making mongorito!
I am currently integrating with graphql and the only way I can send it data in JS form (unless I'm missing something) is by stringifying to JSON, and then parsing it back. Is there a better way? If not, I'm more than happy to make a PR if you can point me in the right direction.
Thanks!
The text was updated successfully, but these errors were encountered: