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

Function internalCreateSchema

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

Source from the content-addressed store, hash-verified

46};
47
48export 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
61export const internalUpdateSchema = async (className, body, config) => {
62 const controller = await config.database.loadSchema({ clearCache: true });

Callers 2

saveSchemaToDBMethod · 0.90
createSchemaFunction · 0.85

Calls 2

loadSchemaMethod · 0.80
addClassIfNotExistsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…