Optional argsOptional limitAn optional number to limit the results of the query. If you omit this value, the query will return all values
Optional localWhen true the query will only on local data mutations and will not rely on replication.
Optional offsetAn optional number to use as an offset of the results of the query. If you omit this value, an offset of 0 is assumed.
Optional pathThe path of the Ditto string. If you omit this, it will fetch the first registered Ditto value.
Optional queryA Ditto query string. For more information on the query string syntax refer to https://docs.ditto.live/concepts/querying
For example to query for a color property equal to red use:
color == 'red'
Optional sortOptional direction?: SortDirectionAn optional sort parameter for your query. For example, if you want to sort with ascending values on a specific field like "createdOn" use:
{
propertyPath: "createdOn",
direction: "ascending"
}
For descending values use:
{
propertyPath: "createdOn",
direction: "ascending"
}
For more information on the query string syntax refer to https://docs.ditto.live/concepts/querying
Optional arguments that will interpolate the values into the
querystring. For example, if your query string is