# Project out some fields from returned map

**URL:** https://community.neo4j.com/t/project-out-some-fields-from-returned-map/23747
**Category:** Cypher
**Created:** [August 19, 2020, 4:55pm UTC](https://community.neo4j.com/t/project-out-some-fields-from-returned-map/23747 "2020-08-19T16:55:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![codeinode](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/codeinode/32/4623_2.png) [@codeinode](https://community.neo4j.com/u/codeinode)
#### Post date: [August 19, 2020, 4:55pm UTC](https://community.neo4j.com/t/project-out-some-fields-from-returned-map/23747/1 "2020-08-19T16:55:42Z")

</div>

Hello,

Say I am returning a map(document) of which I want to specify some properties to be **left out of the returned data**. Is it possible to only leave those properties out or _ **do we have to know what properties we want beforehand** _?

---

<div class="post-metadata">

### Author: ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)
#### Post date: [August 19, 2020, 5:05pm UTC](https://community.neo4j.com/t/project-out-some-fields-from-returned-map/23747/2 "2020-08-19T17:05:15Z")

</div>

Hello @codeinode 🙂

I think you are looking for [apoc.map.removeKeys()](https://neo4j.com/labs/apoc/4.1/overview/apoc.map/apoc.map.removeKeys/) 🙂

Syntax: `apoc.map.removeKeys(map(document), list_of_keys_to_remove_from_the_map)`

 ![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/a/adccf78357ac84584a2b3f73856225d837421b15.png)

Regards,  
Cobra

---

<div class="post-metadata">

### Author: ![codeinode](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/codeinode/32/4623_2.png) [@codeinode](https://community.neo4j.com/u/codeinode)
#### Post date: [August 19, 2020, 5:13pm UTC](https://community.neo4j.com/t/project-out-some-fields-from-returned-map/23747/3 "2020-08-19T17:13:44Z")

</div>

Ahh this is great - haven't yet learned the use of APOC functions, lot of learning left!

Thanks
