<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nexus-wiki.org/index.php?action=history&amp;feed=atom&amp;title=Dev%3AQueries</id>
	<title>Dev:Queries - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nexus-wiki.org/index.php?action=history&amp;feed=atom&amp;title=Dev%3AQueries"/>
	<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Queries&amp;action=history"/>
	<updated>2026-04-24T16:44:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://nexus-wiki.org/index.php?title=Dev:Queries&amp;diff=119&amp;oldid=prev</id>
		<title>Nexus wiki: Nexus wiki moved page Queries to Dev:Queries without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Queries&amp;diff=119&amp;oldid=prev"/>
		<updated>2024-10-06T13:57:18Z</updated>

		<summary type="html">&lt;p&gt;Nexus wiki moved page &lt;a href=&quot;/index.php?title=Queries&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Queries (page does not exist)&quot;&gt;Queries&lt;/a&gt; to &lt;a href=&quot;/index.php/Dev:Queries&quot; title=&quot;Dev:Queries&quot;&gt;Dev:Queries&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:57, 6 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key nexus_wiki:diff:1.41:old-51:rev-119 --&gt;
&lt;/table&gt;</summary>
		<author><name>Nexus wiki</name></author>
	</entry>
	<entry>
		<id>https://nexus-wiki.org/index.php?title=Dev:Queries&amp;diff=51&amp;oldid=prev</id>
		<title>Nexus wiki: Created page with &quot;== Query DSL (Domain specific Language) ==  The Query DSL(Domian Specific Language) allows to sort and filter recursively to any logical depth. This DSL can be used in conjunction with operators to sort, filter, and compute data in real-time.  &#039;&#039;The Query DSL can be applied to all list and get API commands with a where parameter with the 5.1 release&#039;&#039;  == Selector Keys ==  The following operators are supported for this API command-set:  [object] - This selector key will...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Queries&amp;diff=51&amp;oldid=prev"/>
		<updated>2024-10-04T05:33:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Query DSL (Domain specific Language) ==  The Query DSL(Domian Specific Language) allows to sort and filter recursively to any logical depth. This DSL can be used in conjunction with operators to sort, filter, and compute data in real-time.  &amp;#039;&amp;#039;The Query DSL can be applied to all list and get API commands with a where parameter with the 5.1 release&amp;#039;&amp;#039;  == Selector Keys ==  The following operators are supported for this API command-set:  [object] - This selector key will...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Query DSL (Domain specific Language) ==&lt;br /&gt;
&lt;br /&gt;
The Query DSL(Domian Specific Language) allows to sort and filter recursively to any logical depth. This DSL can be used in conjunction with operators to sort, filter, and compute data in real-time.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;The Query DSL can be applied to all list and get API commands with a where parameter with the 5.1 release&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Selector Keys ==&lt;br /&gt;
&lt;br /&gt;
The following operators are supported for this API command-set:&lt;br /&gt;
&lt;br /&gt;
[object] - This selector key will evaluate the comparison on the raw binary object.&lt;br /&gt;
[results] - This selector key will evaluate the comparison on the results json.&lt;br /&gt;
&lt;br /&gt;
== Supported Objects ==&lt;br /&gt;
&lt;br /&gt;
The following object classes are supported:&lt;br /&gt;
&lt;br /&gt;
* object - operates on a raw object register&lt;br /&gt;
* results - operates and filters based on the JSON results. This can be about 10x slower, so use sparingly.&lt;br /&gt;
&lt;br /&gt;
== Using wildcards ==&lt;br /&gt;
&lt;br /&gt;
If you are searching by a string parameter, you can include &amp;#039;*&amp;#039; as an any-character wildcard match, so that you can search values based on a partial match.&lt;br /&gt;
&lt;br /&gt;
 register/list/accounts WHERE &amp;#039;object.name=d*&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The above will return all accounts that start with a letter &amp;#039;d&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Following wildcard ==&lt;br /&gt;
&lt;br /&gt;
The following demonstrates how to check with wildcards.&lt;br /&gt;
&lt;br /&gt;
 register/list/accounts WHERE &amp;#039;object.name=*d&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This above will return all accounts that have a name ending with letter &amp;#039;d&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
To filter, you can use where=&amp;#039;statements&amp;#039; or follow the command with WHERE string:&lt;br /&gt;
&lt;br /&gt;
=== Filtering objects with WHERE clause ===&lt;br /&gt;
&lt;br /&gt;
The below clause will filter all name object registers, that are Global names that start with letter &amp;#039;P&amp;#039;, or any objects that start with letter &amp;#039;S&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
 register/list/names WHERE &amp;#039;(object.namespace=*GLOBAL* AND object.name=P*) OR object.name=S*&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Using the object class i.e. &amp;#039;object.namespace&amp;#039; will invoke the filter on the binary object.&lt;br /&gt;
&lt;br /&gt;
=== Filtering objects with where= ===&lt;br /&gt;
&lt;br /&gt;
The below clause will filter all name object registers, that are Global names that start with letter &amp;#039;P&amp;#039;, or any objects that start with letter &amp;#039;S&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
 register/list/names where=&amp;#039;(object.namespace=*GLOBAL* AND object.name=P*) OR object.name=S*&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Filtering with multiple operators&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The below will return all NXS accounts that have a balance greater than 10 NXS.&lt;br /&gt;
&lt;br /&gt;
 register/list/accounts WHERE &amp;#039;object.token=0 AND object.balance&amp;gt;10&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Creating logical grouping ===&lt;br /&gt;
&lt;br /&gt;
The following demonstrates how to query using multiple recursive levels.&lt;br /&gt;
&lt;br /&gt;
 register/list/accounts WHERE &amp;#039;(object.token=0 AND object.balance&amp;gt;10) OR (object.token=8Ed7Gzybwy3Zf6X7hzD4imJwmA2v1EYjH2MNGoVRdEVCMTCdhdK AND object.balance&amp;gt;1)&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This will give all NXS accounts with balance greater than 10, or all accounts for token &amp;#039;8Ed7Gzybwy3Zf6X7hzD4imJwmA2v1EYjH2MNGoVRdEVCMTCdhdK&amp;#039; with balance greater than 1.&lt;br /&gt;
&lt;br /&gt;
=== More complex queries ===&lt;br /&gt;
&lt;br /&gt;
There is no current limit to the number of levels of recursion, such as:&lt;br /&gt;
&lt;br /&gt;
 register/list/names WHERE &amp;#039;((object.name=d* AND object.namespace=~GLOBAL~) OR (object.name=e* AND object.namespace=send.to)) OR object.namespace=*s&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The above command will return all objects starting with letter &amp;#039;d&amp;#039; that are global names, or all objects starting with letter &amp;#039;e&amp;#039; in the &amp;#039;send.to&amp;#039; namespace, or finally all objects that are in a namespace that ends with the letter &amp;#039;s&amp;#039;.&lt;/div&gt;</summary>
		<author><name>Nexus wiki</name></author>
	</entry>
</feed>