diff --git a/README.md b/README.md index 2d5eb20..e1dad22 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ You can also configure whether `createdAt` and `updatedAt` are required or not. By setting the `validateUpsert` option to true you will prevent this mixin from overriding the default Model settings. With validation turned on most upsert operations will fail with validation errors about missing the required fields like `createdAt` or `updatedAt`. -This mixin uses console logs to warn you whenever something might need your attention. If you would prefer not to receive these warnings, you can disable them by setting the option `silenceWarnings` to `false` on a per model basis. +This mixin uses console logs to warn you whenever something might need your attention. If you would prefer not to receive these warnings, you can disable them by setting the option `silenceWarnings` to `true` on a per model basis. In this example we change `createdAt` and `updatedAt` to `createdOn` and `updatedOn`, respectively. We also change the default `required` to `false` and set `validateUpsert` to true. We also disable console warnings with `silenceWarnings`. @@ -97,7 +97,7 @@ In this example we change `createdAt` and `updatedAt` to `createdOn` and `update "updatedAt" : "updatedOn", "required" : false, "validateUpsert": true, - "silenceWarnings": false + "silenceWarnings": true } } }