# How to get list from "MATCH" clause?

**URL:** <https://community.neo4j.com/t/how-to-get-list-from-match-clause/55945>\
**Category:** Cypher\
**Tags:** cypher\
**Created:** [May 7, 2022, 1:03pm UTC](https://community.neo4j.com/t/how-to-get-list-from-match-clause/55945 "2022-05-07T13:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangjelly66](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/zhangjelly66/32/23004_2.png) [@zhangjelly66](https://community.neo4j.com/u/zhangjelly66)\
**Post date:** [May 7, 2022, 1:03pm UTC](https://community.neo4j.com/t/how-to-get-list-from-match-clause/55945/1 "2022-05-07T13:03:00Z")

</div>

I want to get the list form of the result of match and use the result to do the following logic judgement...  
But how can I get the list form from "match" result? it seems to be the single node satisfied the given pattern.

E.g.

```auto
match(n:things)

```

node with **things** label has property **name** , how can I get the **n.name** in list format?

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [May 7, 2022, 5:46pm UTC](https://community.neo4j.com/t/how-to-get-list-from-match-clause/55945/2 "2022-05-07T17:46:13Z")

</div>

Try this:

```auto
match(n:things)
return collect(distinct n.name)

```

---

<div class="post-metadata">

**Author:** ![zhangjelly66](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/zhangjelly66/32/23004_2.png) [@zhangjelly66](https://community.neo4j.com/u/zhangjelly66)\
**Post date:** [May 9, 2022, 12:57am UTC](https://community.neo4j.com/t/how-to-get-list-from-match-clause/55945/3 "2022-05-09T00:57:18Z")

</div>

thank you 😄  
it works
