(name, schema)
| 6 | import { enforceMasterKeyAccess, cloneArgs } from '../parseGraphQLUtils'; |
| 7 | |
| 8 | const 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 | |
| 20 | const load = parseGraphQLSchema => { |
| 21 | parseGraphQLSchema.addGraphQLQuery( |
no test coverage detected
searching dependent graphs…