-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7015 from apollographql/release-3.3
Release 3.3.0
- Loading branch information
Showing
64 changed files
with
4,281 additions
and
942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
| Property | Type | Description | | ||
| - | - | - | | ||
| `data` | TData | An object containing the result of your GraphQL query. Defaults to `undefined`. | | ||
| `previousData` | TData | An object containing the previous result of your GraphQL query (the last result before a new `data` value was set). Defaults to `undefined`. | | ||
| `loading` | boolean | A boolean that indicates whether the request is in flight | | ||
| `error` | ApolloError | A runtime error with `graphQLErrors` and `networkError` properties | | ||
| `variables` | { [key: string]: any } | An object containing the variables the query was called with | | ||
| `networkStatus` | NetworkStatus | A number from 1-8 (1 = `loading`, 2 = `setVariables`, 3 = `fetchMore`, 4 = `refetch`, 6 = `poll`, 7 = `ready`, 8 = `error`) corresponding to the detailed state of your network request. Includes information about refetching and polling status. Used in conjunction with the `notifyOnNetworkStatusChange` prop. | | ||
| `refetch` | (variables?: Partial<TVariables>) => Promise<ApolloQueryResult> | A function that allows you to refetch the query and optionally pass in new variables | | ||
| `fetchMore` | ({ query?: DocumentNode, variables?: TVariables, updateQuery: Function}) => Promise<ApolloQueryResult> | A function that enables [pagination](/features/pagination/) for your query | | ||
| `fetchMore` | ({ query?: DocumentNode, variables?: TVariables, updateQuery: Function}) => Promise<ApolloQueryResult> | A function that enables [pagination](../../pagination/overview) for your query | | ||
| `startPolling` | (interval: number) => void | This function sets up an interval in ms and fetches the query each time the specified interval passes. | | ||
| `stopPolling` | () => void | This function stops the query from polling. | | ||
| `subscribeToMore` | (options: { document: DocumentNode, variables?: TVariables, updateQuery?: Function, onError?: Function}) => () => void | A function that sets up a [subscription](/data/subscriptions/). `subscribeToMore` returns a function that you can use to unsubscribe. | | ||
| `subscribeToMore` | (options: { document: DocumentNode, variables?: TVariables, updateQuery?: Function, onError?: Function}) => () => void | A function that sets up a [subscription](../../data/subscriptions/). `subscribeToMore` returns a function that you can use to unsubscribe. | | ||
| `updateQuery` | (previousResult: TData, options: { variables: TVariables }) => TData | A function that allows you to update the query's result in the cache outside the context of a fetch, mutation, or subscription | | ||
| `client` | ApolloClient | Your `ApolloClient` instance. Useful for manually firing queries or writing data to the cache. | | ||
| `called` | boolean | A boolean indicating if the query function has been called, used by `useLazyQuery` (not set for `useQuery` / `Query`). | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.