(className, body, config)
| 46 | }; |
| 47 | |
| 48 | export const internalCreateSchema = async (className, body, config) => { |
| 49 | const controller = await config.database.loadSchema({ clearCache: true }); |
| 50 | const response = await controller.addClassIfNotExists( |
| 51 | className, |
| 52 | body.fields, |
| 53 | body.classLevelPermissions, |
| 54 | body.indexes |
| 55 | ); |
| 56 | return { |
| 57 | response, |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | export const internalUpdateSchema = async (className, body, config) => { |
| 62 | const controller = await config.database.loadSchema({ clearCache: true }); |
no test coverage detected
searching dependent graphs…