svelte: mutation: why is it complaining about OperationStore if I'm passing a GraphQLRequest? #1470
Answered
by
kitten
frederikhors
asked this question in
Q&A
-
I am trying to finish the Typescript conversion and now I have run into these kinds of errors with Is there something I'm doing wrong? const myMutation = `
mutation ($id: ID!, $input: myInput!) {
myUpdate(id: $id, input: $input) {
id
name
}
}
`;
const updateMutation = mutation({ query: myMutation }); Why is it complaining about
Anyway, I hate Typescript with all my heart! 🤣 |
Beta Was this translation helpful? Give feedback.
Answered by
kitten
Mar 19, 2021
Replies: 1 comment 2 replies
-
That's because it's not a complete request, so if you pass |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JoviDeCroock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's because it's not a complete request, so if you pass
variables
TypeScript will get it. I think we should actually make that type looser