Skip to content

updateQuery documentation error #9832

Closed
@KhalfaniW

Description

The function signature in the documentation for updateQuery says it takes 2 parameters and returns TData
(previousResult: TData, options: { variables: TVariables }) => TData

https://www.apollographql.com/docs/react/api/react/hooks/#updatequery

However in the code it takes a mapFn parameter and returns void

public updateQuery<TVars = TVariables>(

Please also explain what mapFn is supposed to do because I was confused.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions