Closed Ouradze closed 4 years ago
It seems I was not using the correct way to write my query:
query{
todoLists: allTodoLists {
id
title
creator {
id
username
}
createdAt
}
}
`;
Maybe it could be mentioned somewhere in the documentation. Sorry for the noise !
Since you can have multiple fields in a single query, vue-apollo just tries to pick the one with the same name as your key. In your example, that would be todoLists
. Since in your OP you had allTodoLists
in the result instead, it couldn't find it.
Hello,
I used the vue plugin to install vue apollo, I currentlu have the following version:
My
vue-apollo.js
file is the following:And the
main.js
is this one:When I try in a component to do a query, it is as if I had the manual mode was activated:
In the console, I get this error:
Missing todoLists attribute on result Object { allTodoLists: (1) […], … }
.Am I missing something somewhere ? Thanks in advance for your help !