MCPcopy Create free account
hub / github.com/parse-community/parse-server / internalUpdateSchema

Function internalUpdateSchema

src/Routers/SchemasRouter.js:61–71  ·  view source on GitHub ↗
(className, body, config)

Source from the content-addressed store, hash-verified

59};
60
61export 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
73async function createSchema(req) {
74 checkIfDefinedSchemasIsUsed(req);

Callers 2

updateSchemaToDBMethod · 0.90
modifySchemaFunction · 0.85

Calls 2

loadSchemaMethod · 0.80
updateClassMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…