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?

Hello @codeinode :slight_smile:

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

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

Regards,
Cobra

1 Like

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

Thanks

1 Like