Apollo Graphql useQuery will not work unless I declare data as empty object

后端 未结 0 1249
礼貌的吻别
礼貌的吻别 2020-11-27 22:26

I am working with apollo and graphql and the following will not work, it gives me an (...)(...).data is undefined error.

const { 
    data: { getPost } 
  } =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题