Javascript 错误:GraphQL错误:无法为不可为null的字段Mutation.updatePost返回null

Javascript 错误:GraphQL错误:无法为不可为null的字段Mutation.updatePost返回null,javascript,vue.js,graphql,vuex,Javascript,Vue.js,Graphql,Vuex,当我尝试更新某些内容时,出现此错误。。 我是graphql和vue js的新手 这是我的moduleActions代码 async updatePost({ commit }, payload) { try { commit("clearError"); commit("setLoading", true); const { data } = await apolloClient.mutate({

当我尝试更新某些内容时,出现此错误。。 我是graphql和vue js的新手 这是我的moduleActions代码

async updatePost({ commit }, payload) {
    try {
      commit("clearError");
      commit("setLoading", true);
      const { data } = await apolloClient.mutate({
        mutation: UPDATE_POST,
        variables: payload,
      });
      commit("UPDATE_POST", data.updatePost);
      commit("setLoading", false);
    } catch (error) {
      commit("setLoading", false);
      commit("setError", error);
      console.error(error);

    }
  },

这是BE/API错误,请检查网络响应详细信息。。。在编写FE之前,使用Postman单独测试[每个功能]API