readMetadata

Reads metadata of a ref