Open History to see the last commit
1---
2id: queryOptions
3title: queryOptions
4---
5β
6```tsx
7queryOptions({
8 queryKey,
9 ...options,
10})
11```
12β
13**Options**
14β
15You can generally pass everything to `queryOptions` that you can also pass to [`useQuery`](./reference/useQuery). Some options will have no effect when then forwarded to a function like `queryClient.prefetchQuery`, but TypeScript will still be fine with those excess properties.
16β
17- `queryKey: QueryKey`
18 - **Required**
19 - The query key to generate options for.