Today query hooks are generated like:
export function useFindManyUser<T extends Prisma.UserFindManyArgs>(
args?: Prisma.SelectSubset<T, Prisma.UserFindManyArgs>,
options?: Omit<
QueryOptions<
Array<Prisma.UserGetPayload<T> & { $optimistic?: boolean }>
>,
'queryKey'
>,
optimisticUpdate: boolean = true
);
The QueryOptions type for the options parameter is too generic and is missing a bunch of useful fields like "refetchInterval". We should generate CreateQueryOptions instead.