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

Function getRootFieldName

src/Controllers/DatabaseController.js:414–416  ·  view source on GitHub ↗
(fieldName: string)

Source from the content-addressed store, hash-verified

412 * @returns {string} the root name of the field
413 */
414const getRootFieldName = (fieldName: string): string => {
415 return fieldName.split('.')[0];
416};
417
418const relationSchema = {
419 fields: { relatedId: { type: 'String' }, owningId: { type: 'String' } },

Callers 3

updateMethod · 0.85
canAddFieldMethod · 0.85
findMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected