React-admin - 应如何从后端公开数据 - hasura/graphql
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论