码迷,mamicode.com
首页 > Windows程序 > 详细

graphQL 启动报错No method or field found with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment] as the last argument), in priority order:

时间:2019-06-09 23:53:42      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:--   auto   实体   nat   lsp   any   The   ror   dep   

-------------------root.graphqls---------------------------这个文件用来定义属性字段,必须和实体类相同

文件里面的字段写错会报这个错误

com.coxautodev.graphql.tools.FieldResolverError: No method or field found with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment] as the last argument), in priority order:

com.zsn.graphqlspringboot.pojo.Emp.dep_id()
com.zsn.graphqlspringboot.pojo.Emp.getDep_id()
com.zsn.graphqlspringboot.pojo.Emp.dep_id

就是这个"dep_id"这个字段写错

graphQL 启动报错No method or field found with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment] as the last argument), in priority order:

标签:--   auto   实体   nat   lsp   any   The   ror   dep   

原文地址:https://www.cnblogs.com/Zhusi/p/10995435.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!