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

Method _toJSONWithFields

src/LiveQuery/Client.js:114–128  ·  view source on GitHub ↗
(parseObjectJSON: any, fields: any)

Source from the content-addressed store, hash-verified

112 }
113
114 _toJSONWithFields(parseObjectJSON: any, fields: any): FlattenedObjectData {
115 if (!fields) {
116 return parseObjectJSON;
117 }
118 const limitedParseObject = {};
119 for (const field of dafaultFields) {
120 limitedParseObject[field] = parseObjectJSON[field];
121 }
122 for (const field of fields) {
123 if (field in parseObjectJSON) {
124 limitedParseObject[field] = parseObjectJSON[field];
125 }
126 }
127 return limitedParseObject;
128 }
129}
130
131export { Client };

Callers 2

_pushEventMethod · 0.95
Client.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected