# Add list or map to field

**URL:** <https://community.neo4j.com/t/add-list-or-map-to-field/38990>\
**Category:** Cypher\
**Created:** [May 28, 2021, 12:11pm UTC](https://community.neo4j.com/t/add-list-or-map-to-field/38990 "2021-05-28T12:11:36Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![clem](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/clem/32/4364_2.png) [@clem](https://community.neo4j.com/u/clem)\
**Post date:** [May 28, 2021, 4:32pm UTC](https://community.neo4j.com/t/add-list-or-map-to-field/38990/22 "2021-05-28T16:32:04Z")

</div>

Yes, but it's harder to search for the roles.... if they are in a list...

I posted this about a real situation from the movies (but not in the sample Movie DB...): Alec Guinness and his 9 roles in "Kind Hearts and Coronets". I'm not sure what the schema choice should be:

> [@How to search in properties of a relationship which has an array of values?](https://community.neo4j.com/t/how-to-search-in-properties-of-a-relationship-which-has-an-array-of-values/8262/9):
>
> Here's a twisted question.... What if the movie is [Kind Hearts and Coronets](https://en.wikipedia.org/wiki/Kind_Hearts_and_Coronets) where Alec Guinness plays nine different roles at once? Here, a person creating the ACTED\_IN relationship might decide (badly?) that the roles property should be in a list instead of creating multiple relationships with a single string for each role. (They might decide have nine relationships of the same type with different properties clutters things up.) CREATE (p:Person {name:'Alec Guinness', born : 1914}) CREATE…

---

_[View the full topic](https://community.neo4j.com/t/add-list-or-map-to-field/38990)._
