Skip to main content
Home  ›  Docs › Feature

App.Query["..."] let's you query all existing pipelines

Warning ⚠️: New Docs Available

These are old docs and we haven't found the time to completely move them. You will find comprehensive new docs on docs.2sxc.org.

Introduced in Version 07.00.00

Any visual query you create can also be used from razor using this property.

Syntaxt

  1. var ds = App.Query["QueryName"]["Default"];
  2. var tags = App.Query["AllTagsSorted"]["Default"];
  3. var listOfOtherStream = App.Query["AllTagsSorted"]["Paging"];

In most cases you'll want to just cast the entire stream as being Dynamic (to allow @Tag.Name etc.) so it's probably more like

  1. var tags = AsDynamic(App.Query["AllTagsSorted"]["Default"]);

See also what the wiki says about App.Query here.