不要怂,就是干,撸起袖子干!

Commit 92cbae90 by Kenny D Committed by GitHub

docs(model): correct syntax error in example code (#12137)

1 parent 1e6f9af1
Showing with 2 additions and 2 deletions
...@@ -2056,7 +2056,7 @@ class Model { ...@@ -2056,7 +2056,7 @@ class Model {
* include: [ * include: [
* { model: Profile, required: true} * { model: Profile, required: true}
* ], * ],
* limit 3 * limit: 3
* }); * });
* *
* # Because the include for `Profile` has `required` set it will result in an inner join, and only the users who have a profile will be counted. If we remove `required` from the include, both users with and without profiles will be counted * # Because the include for `Profile` has `required` set it will result in an inner join, and only the users who have a profile will be counted. If we remove `required` from the include, both users with and without profiles will be counted
......
...@@ -1852,7 +1852,7 @@ export abstract class Model<T = any, T2 = any> extends Hooks { ...@@ -1852,7 +1852,7 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
* include: [ * include: [
* { model: Profile, required: true} * { model: Profile, required: true}
* ], * ],
* limit 3 * limit: 3
* }); * });
* ``` * ```
* Because the include for `Profile` has `required` set it will result in an inner join, and only the users * Because the include for `Profile` has `required` set it will result in an inner join, and only the users
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!