Skip to main content

Home > git-documentdb > JsonDocMetadata

JsonDocMetadata type#

Metadata for JsonDoc

Signature:
export declare type JsonDocMetadata = {
_id: string;
name: string;
fileOid: string;
type: 'json';
};

Remarks#

  • _id: _id of a JSON document. This is a file name without extension.

  • name: A file name in Git. e.g.) "foo.json", "bar/baz.md"

  • fileOid: SHA-1 hash of Git object (40 characters)

  • type: type shows a DocType. type of JsonDocMetadata is fixed to 'json'.