cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Project out some fields from returned map

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?

1 ACCEPTED SOLUTION

Hello @codeinode

I think you are looking for apoc.map.removeKeys()

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

Regards,
Cobra

View solution in original post

2 REPLIES 2

Hello @codeinode

I think you are looking for apoc.map.removeKeys()

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

Regards,
Cobra

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

Thanks