Closed
Description
Issue
With the vue-apollo@v3.0.0-rc.3
release, we can't explicitly say the $apollo.mutate
method return type for the mutation result data value.
Example
const { data } = await this.$apollo.mutate<MutationResultInterface>({
mutation: gql`mutation () { }`,
variables: {
id: 12345
}
})
Version v3.0.0-rc.2
IDE knows that data
is of type MutationResultInterface
Version v3.0.0-rc.3
IDE shows the thrown error: this.$apollo.mutate
is expecting 0 type arguments, but got 1.
How do we explicitly say the return data type of a mutation now on v3.0.0-rc.3
?
Metadata
Metadata
Assignees
Labels
No labels