docs: function buildMerge(recordTypes, recordTypeName, mergePatch) {
  
  	// only object merge patches are supported
  	if (((typeof mergePatch) !== 'object') || (mergePatch === null))
  		throw new common.X2SyntaxError('Merge patch must be an object.');
  
  	// build JSON patch
  	const jsonPatch = new Array();
  	buildMergeLevel('', mergePatch, jsonPatch);
  
  	// build and return the record patch
  	return build(recordTypes, recordTypeName, jsonPatch);
  }