MCPcopy Index your code
hub / github.com/parse-community/parse-server / schemaCreation

Function schemaCreation

spec/schemas.spec.js:2911–2914  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2909 const fieldName = '1invalid';
2910
2911 const schemaCreation = () =>
2912 schemaController.addClassIfNotExists('AnObject', {
2913 [fieldName]: { __type: 'String' },
2914 });
2915
2916 await expectAsync(schemaCreation()).toBeRejectedWith(
2917 new Parse.Error(Parse.Error.INVALID_KEY_NAME, `invalid field name: ${fieldName}`)

Callers 1

schemas.spec.jsFile · 0.85

Calls 1

addClassIfNotExistsMethod · 0.80

Tested by

no test coverage detected