From 3f939846a20a61c05fb78134591870aebd5869af Mon Sep 17 00:00:00 2001 From: Vahid Sane Date: Sat, 7 Sep 2024 12:59:31 +0330 Subject: [PATCH] fix example document --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 366ecb4..fc9944c 100644 --- a/README.md +++ b/README.md @@ -93,15 +93,19 @@ const allSchema = [ }, ]; -const results = await manageSchema(allSchemas, {commit:false,remove:false,purge:false}, -{ - fields: false, - indexes: false, - classLevelPermissions: false, -} , { - ignoreClasses: ["_User", "_Role", "_Session"] - ignoreAttributes: ["createdAt", "updatedAt"]; -}); +const results = await manageSchema( + allSchemas, + {commit:false,remove:false,purge:false}, + { + fields: true, + indexes: true, + classLevelPermissions: true, + }, + { + ignoreClasses: ["_User", "_Role", "_Session"], + ignoreAttributes: ["createdAt", "updatedAt"] + } +); console.log(results); ```