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

Function getClass

src/GraphQL/loaders/schemaQueries.js:8–18  ·  view source on GitHub ↗
(name, schema)

Source from the content-addressed store, hash-verified

6import { enforceMasterKeyAccess, cloneArgs } from '../parseGraphQLUtils';
7
8const getClass = async (name, schema) => {
9 try {
10 return await schema.getOneSchema(name, true);
11 } catch (e) {
12 if (e === undefined) {
13 throw new Parse.Error(Parse.Error.INVALID_CLASS_NAME, `Class ${name} does not exist.`);
14 } else {
15 throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, 'Database adapter error.');
16 }
17 }
18};
19
20const load = parseGraphQLSchema => {
21 parseGraphQLSchema.addGraphQLQuery(

Callers 2

loadFunction · 0.90
loadFunction · 0.85

Calls 1

getOneSchemaMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…