(className, body, config)
| 59 | }; |
| 60 | |
| 61 | export const internalUpdateSchema = async (className, body, config) => { |
| 62 | const controller = await config.database.loadSchema({ clearCache: true }); |
| 63 | const response = await controller.updateClass( |
| 64 | className, |
| 65 | body.fields || {}, |
| 66 | body.classLevelPermissions, |
| 67 | body.indexes, |
| 68 | config.database |
| 69 | ); |
| 70 | return { response }; |
| 71 | }; |
| 72 | |
| 73 | async function createSchema(req) { |
| 74 | checkIfDefinedSchemasIsUsed(req); |
no test coverage detected
searching dependent graphs…