4 ms·
I havnt really spent too much time looking at Relay, so forgive me if this is a dumb question, but if you want to use the Relay paradigm do you not have to chan
by misiti3780 11y ago
I havnt really spent too much time looking at Relay, so forgive me if this is a dumb question, but if you want to use the Relay paradigm do you not have to change your backend-apis to return GraphQL formatted JSON ?
- dominotw 11y agoyes
- RussianCow 11y agoYes, you do. Facebook wrote an example GraphQL server[0] on top of Express. [0]: https://github.com/graphql/express-graphql https://github.com/graphql/express-graphql
- hueyp 11y agoYes, but GraphQL is just a thin layer so you can call your existing API's from GraphQL. For example you could start with GraphQL calling an existing HTTP service and go from there. A nice talk / use case given here: https://www.youtube.com/watch?v=S0s935RKKB4 https://www.youtube.com/watch?v=S0s935RKKB4