TypeORM findOne with nested relations
I am having some issues performing a nested find query with TypeORM. Here's the basic code: const { completionId } = req?.params; const user = req.user; const retrievedCompletion = await getRepository( CompletionGoogleSearch ).findOne({ relations: ['run', 'run.user'], where: { id: completionId, // run: { user: { id: user.id } }, // This is the code that brea