From a9481d87fc045a3e42645b09a9fcec704cfa9cc5 Mon Sep 17 00:00:00 2001 From: Hugh Willson Date: Fri, 17 Aug 2018 13:04:28 -0400 Subject: [PATCH] Add missing `onComplete` and `onError` props to "Queries" docs (#3831) --- docs/source/essentials/queries.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/essentials/queries.md b/docs/source/essentials/queries.md index 8be279425fc..50a1cfb2b22 100644 --- a/docs/source/essentials/queries.md +++ b/docs/source/essentials/queries.md @@ -263,6 +263,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.