diff --git a/docs/source/api/react-apollo.md b/docs/source/api/react-apollo.md index bb86c2f9246..80db001c642 100644 --- a/docs/source/api/react-apollo.md +++ b/docs/source/api/react-apollo.md @@ -77,6 +77,10 @@ The Query component accepts the following props. Only `query` and `children` are
The name of your component to be displayed in React DevTools. Defaults to 'Query'.
`skip`: boolean
If skip is true, the query will be skipped entirely.
+
`onCompleted`: (data: TData | {}) => void
+
A callback executed once your query successfully completes.
+
`onError`: (error: ApolloError) => void
+
A callback executed in the event of an error.
`context`: Record
Shared context between your Query component and your network interface (Apollo Link). Useful for setting headers from props or sending information to the `request` function of Apollo Boost.