File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ export const TestObjectSchema = {
2+ className : "TestObject" ,
3+ fields : {
4+ beforeSave : { type : "Boolean" , defaultValue : false } ,
5+ additionalData : { type : "String" } ,
6+ } ,
7+ classLevelPermissions : {
8+ find : { "*" : true } ,
9+ count : { "*" : true } ,
10+ get : { "*" : true } ,
11+ update : { "*" : true } ,
12+ create : { "*" : true } ,
13+ delete : { "*" : true } ,
14+ } ,
15+ } ;
Original file line number Diff line number Diff line change 1+ import { TestObjectSchema } from "./TestObject/schema.js" ;
2+ export const schemaDefinitions = [ TestObjectSchema ] ;
Original file line number Diff line number Diff line change 1+ import { schemaDefinitions } from "./cloud/schema.js" ;
12export const config = {
23 databaseURI : process . env . DATABASE_URI || process . env . MONGODB_URI || 'mongodb://localhost:27017/dev' ,
34 cloud : process . env . CLOUD_CODE_MAIN || './cloud/main.js' ,
@@ -7,4 +8,11 @@ export const config = {
78 liveQuery : {
89 classNames : [ 'Posts' , 'Comments' ] , // List of classes to support for query subscriptions
910 } ,
11+ schema : {
12+ definitions : schemaDefinitions ,
13+ lockSchemas : true ,
14+ strict : true ,
15+ recreateModifiedFields : false ,
16+ deleteExtraFields : false ,
17+ } ,
1018} ;
You can’t perform that action at this time.
0 commit comments