Open History to see the last commit
1---
2id: QueryClientConfig
3title: QueryClientConfig
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8Defined in: [packages/query-core/src/types.ts:2362](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L2362)
9β
10The options of `new QueryClient()`: the `queryCache` and `mutationCache` to use, and the
11`defaultOptions` for its queries and mutations.
12β
13## Properties
14β
15| Property | Type | Description |
16| ------ | ------ | ------ |
17| <a id="property-defaultoptions"></a> `defaultOptions?` | [`DefaultOptions`](DefaultOptions.md)\<`Error`\> | Default options for all queries and mutations created through this client. |
18| <a id="property-mutationcache"></a> `mutationCache?` | [`MutationCache`](../classes/MutationCache.md) | The mutation cache this client is connected to. A new `MutationCache` is created if not provided. |
19| <a id="property-querycache"></a> `queryCache?` | [`QueryCache`](../classes/QueryCache.md) | The query cache this client is connected to. A new `QueryCache` is created if not provided. |