问题描述
我遵循一些有关VueJS,Graphql和Apollo的教程,但我陷入了困境。 我在控制台日志中收到此错误,发送查询“ todos” ServerParseError时出错:JSON位置0中的意外令牌
这是我的代码
export const GET_MY_TODOS = gql`
query getMyTodos {
todos(where: { is_public: { _eq: false} },order_by: { created_at: desc }) {
id
title
created_at
is_completed
}
}`;
data() {
return {
type: "private",filterType: "all",todos: [],}
},apollo: {
todos: {
query: GET_MY_TODOS,},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)