MetaCopy
MetaCopies are the representation of a last known location. You can view them as shelf numbers for books in libraries.
Get One MetaCopy
Use the one() method to fetch a single Metacopy record from a Metafile collection.
const metacopy = library.query.metacopies.one("<metacopy-uuid>").fetch();To use this example, replace <metacopy-uuid> with the UUID of the Metacopy you want to fetch.
Delete One MetaCopy
Use the delete() method to delete a single Metacopy record from a Metafile collection.
metacopy.query.delete();The delete() method sends a deletion request to the Database and removes the record from the collection.
Get Many MetaCopies
Use many() method to fetch multiple Metacopy records from a Metafile collection.
const metacopies_array = metafile.query.metacopies.many().fetch();Last updated
Was this helpful?