src/parse-mockdb.js
function fetchObjectByPointer(pointer) {
  const collection = getCollection(pointer.className);
  const storedItem = collection[pointer.objectId];

  if (storedItem === undefined) {
    return undefined;
  }

  return Object.assign(
    { __type: 'Object', className: pointer.className },
    _.cloneDeep(storedItem)
  );
}
function fetchObjectByPointer(pointer) {
  const collection = getCollection(pointer.className);
  const storedItem = collection[pointer.objectId];

  if (storedItem === undefined) {
    return undefined;
  }

  return Object.assign(
    { __type: 'Object', className: pointer.className },
    _.cloneDeep(storedItem)
  );
}
function fetchObjectByPointer ( pointer ) { const collection = getCollection ( pointer . className ) ; const storedItem = collection [ pointer . objectId ] ; if ( storedItem === undefined ) { return undefined ; } return Object . assign ( { __type : 'Object' , className : pointer . className } , _ . cloneDeep ( storedItem ) ) ; }
Given an object, a pointer, or a JSON representation of a Parse Object,
return a fully fetched version of the Object.
Given an object a pointer or a JSON representation of a Parse Object return a fully fetched version of the Object .