我是第一次接触reactjs,尝试将postgres与reactjs集成。有没有办法把postgraphile和reactjs集成起来?
如果是这样,请帮我提供代码或教程链接。
发布于 2019-02-13 13:16:38
以下是一些使用PostGraphile的应用程序示例,其中一些涉及React:
https://github.com/graphile/postgraphile/wiki/App-Examples
也可以查看https://github.com/graphile/examples和https://github.com/graphile/bootstrap-react-apollo
发布于 2020-06-17 17:37:17
虽然这里已经有了一个公认的答案,但它遗漏了一些显而易见的东西:你“集成reactjs和postgraphile”的方式是通过使用GraphQL客户端库(例如。Apollo、Relay、Lokka等)在您的React应用程序中访问postgraphile创建的API。
https://stackoverflow.com/questions/54661907
复制