We're encountering a case where we have a query:
(p/pluck-many {:db/id {:dashboard/widgets [:db/id]}} dashboard-ids)
The underlying datomic query doesn't return widgets for a certain dashboard, because there are no widgets - but instead of not returning :dashboard/widgets at all, as we would expect from pull-many, it returns the key mapped to an empty map {}:
(p/pluck-many {:db/id {:dashboard/widgets [:db/id]}} dashboard-ids) ;=> [{:db/id 1, :dashboard/widgets {}}]
We're encountering a case where we have a query:
(p/pluck-many {:db/id {:dashboard/widgets [:db/id]}} dashboard-ids)The underlying datomic query doesn't return widgets for a certain dashboard, because there are no widgets - but instead of not returning
:dashboard/widgetsat all, as we would expect frompull-many, it returns the key mapped to an empty map{}: