GraphQL和Magic API有问题。如何在服务器上应用突变和查询以创建模式
我有两个GraphQl文件:mutations.js
和queries.js
在gql
文件夹下...
此文件夹包含跨度的GraphQl突变和查询该应用。
I have two GraphQL files: mutations.js
and queries.js
under a gql
folder...
This folder contains GraphQL mutations and queries used across the app.
???? gql
???? mutations.js
???? queries.js
I set up the GraphQL endpoint, but i keep getting this error:
Uncaught (in promise) Error: GraphQL error: field "users" not found in type: 'query_root'
NB: None of the GraphQL queries or mutation contain errors
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我手动添加了表,并在创建了Heroku Postgresql数据库之后添加了一些行,将其链接到我的Hasura应用程序,然后将此行放入
.env
:I added tables manually and added some rows after creating a Heroku PostgreSQL database, linking it to my hasura app, and putting this line in
.env
: