# Retrieving keyword from ID

**URL:** <https://forum.datomic.com/t/retrieving-keyword-from-id/796>\
**Category:** General\
**Created:** [January 17, 2019, 1:40am UTC](https://forum.datomic.com/t/retrieving-keyword-from-id/796 "2019-01-17T01:40:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blake](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@blake](https://forum.datomic.com/u/blake)\
**Post date:** [January 17, 2019, 1:40am UTC](https://forum.datomic.com/t/retrieving-keyword-from-id/796/1 "2019-01-17T01:40:46Z")

</div>

I have idents:

```
(def languages
[{:db/ident :language/EN}
{:db/ident :language/ZH}])

```

And I define the schema with a language attribute:

```
 . . .
 {:db/ident :user/language
 :db/valueType :db.type/ref           
. . .}

```

Then I put in a record:

```
(tx [{... :user/language :language/EN...}])

```

When I pull that record back, I get the ID:

```
{... :user/language #:db{:id 17592186045419}...}

```

And I want to turn that #:db{:id 17592186045419} into :language/EN (or something approximating that).

---

<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:** [January 17, 2019, 1:04pm UTC](https://forum.datomic.com/t/retrieving-keyword-from-id/796/2 "2019-01-17T13:04:48Z")

</div>

Hi Blake,

You should be able to `pull` the `:db/ident` for the record to get the keyword ident you’re looking for ([https://docs.datomic.com/cloud/best.html#use-pull-to-retrieve-attribute-values](https://docs.datomic.com/cloud/best.html#use-pull-to-retrieve-attribute-values)).

---

<div class="post-metadata">

**Author:** ![blake](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@blake](https://forum.datomic.com/u/blake)\
**Post date:** [January 17, 2019, 7:19pm UTC](https://forum.datomic.com/t/retrieving-keyword-from-id/796/3 "2019-01-17T19:19:52Z")

</div>

Thanks, Marshall! I was looking right at it and couldn’t figure it out but I got it now. And for anybody who comes after:

```
(d/pull (db) [:db/ident] 17592186045418)

```

…where you replace “17592186045418” with your number. I think what was confusing me was the :db namespace. I kept thinking I needed :language.
