### MongoDB Query Editor Example Source: https://github.com/totaljs/flowstreamcomponents/blob/main/components/mongodb-query.html Provides an example of how to write a query function in the editor. The function receives an mquery instance and the input data. It should return the query object. Examples include returning all documents or using specific query methods. ```javascript // query; mquery instance // data; data from the incomming object return query.find(); // return all documents ``` -------------------------------- ### Tangular Template Examples (HTML) Source: https://github.com/totaljs/flowstreamcomponents/blob/main/components/tangular.html These examples demonstrate how to use Tangular templates with the Total.js Flow Tangular component. The first example shows how to access incoming data properties, while the second shows how to access controller-specific information like the URL, which is available when the message originates from a Route component. ```html App name: {{ value.app_name }} ``` ```html URL: {{ $.refs.controller.url }} ``` -------------------------------- ### Run Unit Tests for Total.js Flow Components Source: https://github.com/totaljs/flowstreamcomponents/blob/main/README.md This snippet outlines the steps to run unit tests for the Total.js Flow components. It requires navigating to the project directory, installing the 'total4' package once, and then executing the 'tester.js' script using Node.js. ```bash cd flowstreamcomponents npm install total4 node tester.js ``` -------------------------------- ### Cheerio HTML Parsing Example Source: https://github.com/totaljs/flowstreamcomponents/blob/main/components/cheerio.html An example demonstrating how to use the Cheerio component to parse an HTML string. It extracts text from list items within a `