I can't understand why this error occurs in the console
import gql from 'graphql-tag' // import gql
const getBooksQuery = gql`query // describing query
{
books{
name
id
}
}
`;
export default {
name: "BookList", // template name
apollo: { // apollo instance
query: getBooksQuery // query
}
}
What am i doing wrong?