При выполнении команды CLI Apollo "клиент apollo: check --key =" MyAPIKEYXX "--includes =" ./ src /**/*.js "
✅Loading Apollo Project
✅Checking client: compatibility with service
Я получил эту ошибку:
Cannot query field "CreateBook" on type Mutation
Cannot query field "Books" on type Query
2 operations validated
2 failures
Есть идеи, что я делаю не так?
client.query(
{
query: gql`
query Books{
books {
title
author
}
}
`,
})
.then((result) => console.log(result));
client.mutate(
{
mutation: gql`
mutation CreatBook{
createBook(input:
{ title: "World"
author: "De la ve"}){
id
title
author
}
}
`
}
)