Markdown Handlebar in Kibana

Hey! Im trying to understand Handlebar when using Visual Builder in Kibana.
I have a few data sources named cars, cities ect. How do I access a specific array within the _all because I want to do something different with each array.

I know this:
{{#each _all}}
{{#with cars as |mydest|}}
{{../label}} -
{{/with}}
{{/each}}

but is there something more like:

{{#if _all.cars}}
DO ONE THING
{{#else}}
DO ONE THING
{{/if}}

Basically. How do I access individual data sources from within _all without loop through _all

Help would be appreciated!

You should be able to use all of handlebar's features in markdown: https://handlebarsjs.com/builtin_helpers.html
As for data sources, the markdown in Visual Builder only uses the result from the "Data" tab, where you get the results of an ES query.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.