---
id: QueryClientConfig
title: QueryClientConfig
---
Defined in: [packages/query-core/src/types.ts:1825](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L1825)
The options of `new QueryClient()`: the `queryCache` and `mutationCache` to use, and the
`defaultOptions` for its queries and mutations.
## Properties
| Property | Type | Description |
| ------ | ------ | ------ |
| `defaultOptions?` | [`DefaultOptions`](DefaultOptions.md)\<`Error`\> | Default options for all queries and mutations created through this client. |
| `mutationCache?` | [`MutationCache`](../classes/MutationCache.md) | The mutation cache this client is connected to. A new `MutationCache` is created if not provided. |
| `queryCache?` | [`QueryCache`](../classes/QueryCache.md) | The query cache this client is connected to. A new `QueryCache` is created if not provided. |