Skip to content

Mark documents as external in destination database when using ETL #18433

Discussion options

You must be logged in to vote

You can use the following ETL script:

this['@metadata']["external"] = true;

loadToCollection(this);

Please not that I didn't use @external: true but external: true. The reason is that:

Keys in the metadata that starting with @ are reserved for RavenDB use

https://ravendb.net/docs/article-page/6.0/csharp/client-api/session/how-to/get-and-modify-entity-metadata#modify-the-metadata

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcuslindblom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants