docs: function determineFKs(row, fks) {
  	var refs = [];
  
  	_.forEach(fks, function(fk, id) {
  		if (row[id] === undefined) return; // Skip omitted FK refs
  
  		switch (fk.type) {
  			case FK_OBJECTID: // 1:1 relationship
  				refs.push(row[id]);
  				break;
  			case FK_OBJECTID_ARRAY: // 1:M array based relationship
  				_.forEach(row[id], function(v) {
  					refs.push(v);
  				});
  				break;
  			case FK_SUBDOC: // Mongo subdocument
  				_.forEach(row[id], function(v) {
  					determineFKs(v, fks[id].fks).forEach(function(dep) {
  						refs.push(dep);
  					});
  				});
  				break;
  		}
  	});
  
  	return refs;
  }