aor-simple-graphql-client:加载数据时出错

时间:2017-07-07 14:37:49

标签: graphql admin-on-rest apollo-server

我正在尝试使用aor-simple-graphql-client和我的apollo服务器。我有一个包含少量元素的数组,其余的管理员只显示最后一个元素。当我使用graphiql执行相同的请求时,我可以看到所有元素。

这是我的回购:https://github.com/JeresB/cuistot-aor 这里有一张图片来解释错误。 enter image description here

1 个答案:

答案 0 :(得分:0)

我认为这可以帮到你:https://marmelab.com/admin-on-rest/FAQ.html#can-i-have-custom-identifiers-primary-keys-for-my-resources

我遇到了同样的问题,我正在使用猫鼬而我只是用id https://github.com/tepio/mongoose-rename-id重命名_id现在它似乎工作正常

希望有所帮助