MCPcopy Create free account
hub / github.com/DanWahlin/CustomerManagerStandard / processNoMerge

Function processNoMerge

CustomerManager/Scripts/breeze.debug.js:15049–15068  ·  view source on GitHub ↗
(mc, stype, node)

Source from the content-addressed store, hash-verified

15047 }
15048
15049 function processNoMerge(mc, stype, node) {
15050 var result = {};
15051
15052 stype.dataProperties.forEach(function (dp) {
15053 if (dp.isComplexProperty) {
15054 result[dp.name] = __map(node[dp.nameOnServer], function (v) {
15055 return processNoMerge(mc, dp.dataType, v);
15056 });
15057 } else {
15058 result[dp.name] = parseRawValue(node[dp.nameOnServer], dp.dataType);
15059 }
15060 });
15061
15062 stype.navigationProperties && stype.navigationProperties.forEach(function (np) {
15063 var nodeContext = { nodeType: "navProp", navigationProperty: np };
15064 visitNode(node[np.nameOnServer], mc, nodeContext, result, np.name);
15065 });
15066
15067 return result;
15068 }
15069
15070 function processAnonType(mc, node) {
15071 // node is guaranteed to be an object by this point, i.e. not a scalar

Callers 1

processMetaFunction · 0.85

Calls 2

__mapFunction · 0.85
visitNodeFunction · 0.85

Tested by

no test coverage detected