Skip to content

Using Data files in other documents #118

Answered by daveaglick
ror3d asked this question in Q&A
Discussion options

You must be logged in to vote

The key here is knowing that YAML files with nested objects get represented as nested documents (I.e. IDocument) within the root document. So in this case, the users.yaml file (assuming that's what it's called) will end up in the Outputs collection and that document that represents the data file will have a key of "users" which contains a list of documents, each with a "name" and "mail" key.

One way to explore this is using the REPL that you get when you run in preview mode:

Granted, you kind of have to know what you're dealing with in terms of objects to really dig through it (or do a lot of .GetType().ToString() calls to figure it out). One enhancement that'll make this easier is the a…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ror3d
Comment options

Answer selected by ror3d
Comment options

You must be logged in to vote
4 replies
@daveaglick
Comment options

@ror3d
Comment options

@daveaglick
Comment options

@ror3d
Comment options

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