From 1db2fd916ab2310e42976c45782d54c0f37cff96 Mon Sep 17 00:00:00 2001 From: Anand Jangid <90138319+Anand-Jangid@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:28:40 +0530 Subject: [PATCH] Update eager-loading.md Change the OUTER JOINT to LEFT OUTER JOIN. Because in absence of required it takes LEFT OUTER JOIN. --- .../advanced-association-concepts/eager-loading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-6.x.x/advanced-association-concepts/eager-loading.md b/versioned_docs/version-6.x.x/advanced-association-concepts/eager-loading.md index 475a0017..bda1d993 100644 --- a/versioned_docs/version-6.x.x/advanced-association-concepts/eager-loading.md +++ b/versioned_docs/version-6.x.x/advanced-association-concepts/eager-loading.md @@ -115,7 +115,7 @@ User.findAll({ include: { association: 'Instruments' } }); // Also works ### Required eager loading -When eager loading, we can force the query to return only records which have an associated model, effectively converting the query from the default `OUTER JOIN` to an `INNER JOIN`. This is done with the `required: true` option, as follows: +When eager loading, we can force the query to return only records which have an associated model, effectively converting the query from the default `LEFT OUTER JOIN` to an `INNER JOIN`. This is done with the `required: true` option, as follows: ```js User.findAll({