React-admin - 应如何从后端公开数据 - hasura/graphql

发布于 2025-01-13 19:15:41 字数 659 浏览 3 评论 0原文

我正在使用 ReactAdmin(3.19.6) 和 ra-data-hasura(0.2.0) dataprovider 它适用于表,但不适用于

当 ReactAdmin 启动消息出现

未知资源 apikeyReceived 时的操作。确保它已在您的服务器端架构中声明。已知资源有 comunicazioni、comunicazioni_aggregate、ping、ping_aggregate、profiles、profiles_aggregate

apikeyReceived 是一个操作资源,可能不是 ReactAdmin 的切面形状(它缺少一些属性或元数据) Reactadmin需要)

<Admin dataProvider={dataProvider} >
      <Resource name="comunicazioni" list={ListGuesser} />
      <Resource name="apikeyReceived" list={ListGuesser} /> 
</Admin>

我认为当React admin执行内省查询时会弹出此消息。 有没有办法可以拦截这个“事件”并覆盖或添加一些东西?

i'm using ReactAdmin(3.19.6) with ra-data-hasura(0.2.0) dataprovider
it works for tables but don't for Actions

when the ReactAdmin start a message appears

Unknown resource apikeyReceived. Make sure it has been declared on your server side schema. Known resources are comunicazioni, comunicazioni_aggregate, ping, ping_aggregate, profiles, profiles_aggregate

apikeyReceived is an action resource and probably it isn't in the aspected shape from ReactAdmin (it miss some property or metadata that reactadmin needs)

<Admin dataProvider={dataProvider} >
      <Resource name="comunicazioni" list={ListGuesser} />
      <Resource name="apikeyReceived" list={ListGuesser} /> 
</Admin>

i think this message is popped out when react admin execute the introspection query.
Is there a way i can intercepr this "event" and override or add something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文