[backend] Implement getCompleteMetadata.