MCPcopy
hub / github.com/parse-community/parse-server / hasClass

Method hasClass

src/Controllers/SchemaController.js:1487–1492  ·  view source on GitHub ↗
(className: string)

Source from the content-addressed store, hash-verified

1485
1486 // Checks if a given class is in the schema.
1487 hasClass(className: string) {
1488 if (this.schemaData[className]) {
1489 return Promise.resolve(true);
1490 }
1491 return this.reloadData().then(() => !!this.schemaData[className]);
1492 }
1493}
1494
1495// Returns a promise for a new Schema.

Callers 4

RestWrite.jsFile · 0.80
RestQuery.jsFile · 0.80
Schema.spec.jsFile · 0.80
schemas.spec.jsFile · 0.80

Calls 1

reloadDataMethod · 0.95

Tested by

no test coverage detected