<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Datomic Knowledgebase - Questions without answers in Peer API</title>
<link>https://ask.datomic.com/index.php/unanswered/peer-api</link>
<description>Powered by Question2Answer</description>
<item>
<title>query with pull and more attributes count max min etc</title>
<link>https://ask.datomic.com/index.php/661/query-with-pull-and-more-attributes-count-max-min-etc</link>
<description>&lt;p&gt;When I try pull attributes together with max, min or count I received only 2 attributes.&lt;/p&gt;
&lt;p&gt;I want the same output from Example 1, but instead a new query to :where, I want use (pull).&lt;/p&gt;
&lt;p&gt;My problem its on example 2, I&#039;m missing or a did something wrong?&lt;/p&gt;
&lt;p&gt;Exemple 1, happens correctly:&lt;/p&gt;
&lt;p&gt;  (defn resume [db]&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  (d/q &#039;[:find ?name-cat (min ?price) (max ?price) (count ?price)
         :keys category min max qtd
         :with ?product
         :where [?product :product/price ?price]
         [?product :product/category ?category]
         [?category :category/nome ?name-cat]]

       db))
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;[{:category &quot;Eletronics&quot;,

  :min 15M,

  :max 15M,

  :qtd 10}]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Exemplo2, using (pull)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(defn resume [db]

  (d/q &#039;[:find (pull ?category [:category/nome])
         (min ?price)
         (max ?price)
         (count ?price)
         ;:keys category min max qtd ;cant use kays because Indexoutbound happen

        :with ?product ;using with because it is a conj, so now it allow if a product has same price
         :where [?product :product/price ?price]
         [?product :product/category ?category]]

       db))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;output&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[{:category/id 34 :category/name &quot;test&quot;} 10
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Peer API</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/661/query-with-pull-and-more-attributes-count-max-min-etc</guid>
<pubDate>Tue, 31 Aug 2021 20:42:03 +0000</pubDate>
</item>
<item>
<title>It would be nice to have something like sync-excise to coordinate with background history removal</title>
<link>https://ask.datomic.com/index.php/649/would-something-excise-coordinate-background-history-removal</link>
<description>&lt;p&gt;According to the docs: &quot;The effect of :db/noHistory happens in the background, and some amount of history may be visible even for attributes with :db/noHistory set to true.&quot; It would be useful to have something like sync-excise to know when the db value is aware of all history removal of a specific (noHistory) attribute.&lt;/p&gt;
</description>
<category>Peer API</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/649/would-something-excise-coordinate-background-history-removal</guid>
<pubDate>Mon, 26 Jul 2021 15:58:21 +0000</pubDate>
</item>
<item>
<title>Reverse order browsing for raw indexes</title>
<link>https://ask.datomic.com/index.php/582/reverse-order-browsing-for-raw-indexes</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
The &lt;code&gt;index-pull&lt;/code&gt; function has the &lt;code&gt;:reverse&lt;/code&gt; option to go through the index in reverse order.&lt;br&gt;
Would it be possible to add it to the raw index browsing functions &lt;code&gt;index-range&lt;/code&gt; and &lt;code&gt;seek-datoms&lt;/code&gt; ?&lt;/p&gt;
</description>
<category>Peer API</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/582/reverse-order-browsing-for-raw-indexes</guid>
<pubDate>Mon, 25 Jan 2021 11:39:25 +0000</pubDate>
</item>
<item>
<title>`gcDeletedDBs` available in peer API</title>
<link>https://ask.datomic.com/index.php/471/gcdeleteddbs-available-in-peer-api</link>
<description>&lt;p&gt;It would be very helpful to be able to call &lt;code&gt;gcDeletedDBs&lt;/code&gt; programmatically from the API.  Providing the felxibility of passing in a Datasource. Allows users to get GC capabilities in the app.&lt;/p&gt;
</description>
<category>Peer API</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/471/gcdeleteddbs-available-in-peer-api</guid>
<pubDate>Sun, 25 Oct 2020 19:36:18 +0000</pubDate>
</item>
<item>
<title>Backup and Restore available via Peer API</title>
<link>https://ask.datomic.com/index.php/451/backup-and-restore-available-via-peer-api</link>
<description>&lt;p&gt;Allow for on-prem backup and restore via the peer-api.&lt;/p&gt;
</description>
<category>Peer API</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/451/backup-and-restore-available-via-peer-api</guid>
<pubDate>Thu, 22 Oct 2020 18:14:38 +0000</pubDate>
</item>
</channel>
</rss>