src/schema/v0020.js
function fetch_object_by_uuid(data, prop, uuid) {
				if(!is_object(data)) { return error('fetch_object_by_uuid(data, ..., ...) not object: '+ data); }
				if(!is_string(prop)) { return error('fetch_object_by_uuid(..., prop, ...) not string: '+ prop); }
				if(!is_uuid(uuid)) { return warn('Property ' + prop + ' was not uuid: ' + uuid); }
				if(data.documents[uuid] === undefined) {
					data.documents[uuid] = get_document(uuid);
				} else {
					return warn('Document already fetched: ' + uuid);
				}
			}
function fetch_object_by_uuid(data, prop, uuid) {
				if(!is_object(data)) { return error('fetch_object_by_uuid(data, ..., ...) not object: '+ data); }
				if(!is_string(prop)) { return error('fetch_object_by_uuid(..., prop, ...) not string: '+ prop); }
				if(!is_uuid(uuid)) { return warn('Property ' + prop + ' was not uuid: ' + uuid); }
				if(data.documents[uuid] === undefined) {
					data.documents[uuid] = get_document(uuid);
				} else {
					return warn('Document already fetched: ' + uuid);
				}
			}
function fetch_object_by_uuid ( data , prop , uuid ) { if ( ! is_object ( data ) ) { return error ( 'fetch_object_by_uuid(data, ..., ...) not object: ' + data ) ; } if ( ! is_string ( prop ) ) { return error ( 'fetch_object_by_uuid(..., prop, ...) not string: ' + prop ) ; } if ( ! is_uuid ( uuid ) ) { return warn ( 'Property ' + prop + ' was not uuid: ' + uuid ) ; } if ( data . documents [ uuid ] === undefined ) { data . documents [ uuid ] = get_document ( uuid ) ; } else { return warn ( 'Document already fetched: ' + uuid ) ; } }
Get document by UUID
Get document by UUID