Document createMetadata also updates