metasoarous / datview

Effortlessly compose data visualizations and controls for Datomic and DataScript data
Eclipse Public License 1.0
25 stars 5 forks source link

Using pull-form without the datview-schema :e/type stuff #13

Open fatbatman opened 7 years ago

fatbatman commented 7 years ago

I would like to use DatView but without having to augment my Datomic schema with the :e/type definitions. I would prefer to specifically query the datoms I want, essentially moving these definitions to the client side with queries such as;

[dat.view/pull-form app '[:db/id :location/name :location/address] e] or [dat.view/pull-form app '[*] e]

However, DatView currently seems to ignore the pull-expr and only renders the datoms that have the :e/type definitions. If the entity does not contain a :e/type datom it fails with an "Error rendering component".

Is adding :e/type to entities a requirement for using DatView going forward?