Skip to content

Specifying a client in a mutation throws type error #645

@anonrose

Description

@anonrose
    await this.$apollo.mutate({
      mutation: MUTATION_CODE,
      variables: {
        ..
      },
      client: "client"
    });```

will throw the following error       

TS2345: Argument of type '{ mutation: any; variables: {  }; client: string; }' is not assignable to parameter of type 'VueApolloMutationOptions<any, any>'.
  Object literal may only specify known properties, and 'client' does not exist in type 'VueApolloMutationOptions<any, any>'.

Resolved this in https://github.com/Akryum/vue-apollo/pull/644

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions