You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Is true if Parse Server should recreate any fields that are different between the current database schema and theschema definition. This should only be used during development.',
43
+
action: parsers.booleanParser,
44
+
default: false,
45
+
},
46
+
strict: {
47
+
env: 'PARSE_SERVER_SCHEMA_STRICT',
48
+
help: 'Is true if Parse Server should exit if schema update fail.',
'Is true if Parse Server should recreate any fields that are different between the current database schema and theschema definition. This should only be used during development.',
489
-
action: parsers.booleanParser,
490
-
default: false,
491
-
},
492
-
lockSchemas: {
493
-
env: 'PARSE_SERVER_SCHEMA_LOCK',
494
-
help:
495
-
'Is true if Parse Server will reject any attempts to modify the schema while the server is running.',
496
-
action: parsers.booleanParser,
497
-
default: false,
498
-
},
499
-
beforeMigration: {
500
-
help: 'Execute a callback before running schema migrations.',
501
-
},
502
-
afterMigration: {
503
-
help: 'Execute a callback after running schema migrations.',
Copy file name to clipboardExpand all lines: src/Options/docs.js
+12
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,14 @@
1
+
/**
2
+
* @interface SchemaOptions
3
+
* @property {Function} afterMigration Execute a callback after running schema migrations.
4
+
* @property {Function} beforeMigration Execute a callback before running schema migrations.
5
+
* @property {Any} definitions Rest representation on Parse.Schema https://docs.parseplatform.org/rest/guide/#adding-a-schema
6
+
* @property {Boolean} deleteExtraFields Is true if Parse Server should delete any fields not defined in a schema definition. This should only be used during development.
7
+
* @property {Boolean} lockSchemas Is true if Parse Server will reject any attempts to modify the schema while the server is running.
8
+
* @property {Boolean} recreateModifiedFields Is true if Parse Server should recreate any fields that are different between the current database schema and theschema definition. This should only be used during development.
9
+
* @property {Boolean} strict Is true if Parse Server should exit if schema update fail.
10
+
*/
11
+
1
12
/**
2
13
* @interface ParseServerOptions
3
14
* @property {AccountLockoutOptions} accountLockout The account lockout policy for failed login attempts.
@@ -68,6 +79,7 @@
68
79
* @property {String} restAPIKey Key for REST calls
69
80
* @property {Boolean} revokeSessionOnPasswordReset When a user changes their password, either through the reset password email or while logged in, all sessions are revoked if this is true. Set to false if you don't want to revoke sessions.
70
81
* @property {Boolean} scheduledPush Configuration for push scheduling, defaults to false.
82
+
* @property {SchemaOptions} schema Defined schema
71
83
* @property {SecurityOptions} security The security options to identify and report weak security settings.
72
84
* @property {Function} serverCloseComplete Callback when server has closed
73
85
* @property {Function} serverStartComplete Callback when server has started
/* Rest representation on Parse.Schema https://docs.parseplatform.org/rest/guide/#adding-a-schema
14
+
:DEFAULT: [] */
15
+
definitions: any;
16
+
/* Is true if Parse Server should exit if schema update fail.
17
+
:DEFAULT: false */
18
+
strict: ?boolean;
19
+
/* Is true if Parse Server should delete any fields not defined in a schema definition. This should only be used during development.
20
+
:DEFAULT: false */
21
+
deleteExtraFields: ?boolean;
22
+
/* Is true if Parse Server should recreate any fields that are different between the current database schema and theschema definition. This should only be used during development.
23
+
:DEFAULT: false */
24
+
recreateModifiedFields: ?boolean;
25
+
/* Is true if Parse Server will reject any attempts to modify the schema while the server is running.
26
+
:DEFAULT: false */
27
+
lockSchemas: ?boolean;
28
+
/* Execute a callback before running schema migrations. */
29
+
beforeMigration: ?()=>void|Promise<void>;
30
+
/* Execute a callback after running schema migrations. */
0 commit comments