# Datomic pull map-spec grammar

**URL:** <https://forum.datomic.com/t/datomic-pull-map-spec-grammar/428>\
**Category:** General\
**Created:** [May 11, 2018, 1:44pm UTC](https://forum.datomic.com/t/datomic-pull-map-spec-grammar/428 "2018-05-11T13:44:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khardenstine](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@khardenstine](https://forum.datomic.com/u/khardenstine)\
**Post date:** [May 11, 2018, 1:44pm UTC](https://forum.datomic.com/t/datomic-pull-map-spec-grammar/428/1 "2018-05-11T13:44:57Z")

</div>

Assuming these pulls are designed to work (they currently do):

> (pull ?e [:db/id {[default :neighborhood/district {:asdf 1}] [\*]}])

> (pull ?e [:db/id {[:neighborhood/district :as “District” :limit 1 :default {:asdf 1}] [\*]}])

I would request the [map-spec](https://docs.datomic.com/on-prem/pull.html#map-specifications) [docs](https://docs.datomic.com/on-prem/pull.html#sec-2-2) be changed from:

> map-spec = { ((attr-name | limit-expr) (pattern | recursion-limit))+ }

to:

> map-spec = { ((attr-name | attr-with-opts | attr-expr) (pattern | recursion-limit))+ }

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [June 4, 2018, 1:29pm UTC](https://forum.datomic.com/t/datomic-pull-map-spec-grammar/428/2 "2018-06-04T13:29:02Z")

</div>

Thanks for catching this. I’ll have a look at adding this to the docs.
