Create query for result returned from a mutation - TanStack