# How to return all relements?

**URL:** <https://community.neo4j.com/t/how-to-return-all-relements/19386>\
**Category:** GraphQL & GRANDstack\
**Created:** [May 30, 2020, 2:10pm UTC](https://community.neo4j.com/t/how-to-return-all-relements/19386 "2020-05-30T14:10:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbdullahAli](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/abdullahali/32/11816_2.png) [@AbdullahAli](https://community.neo4j.com/u/AbdullahAli)\
**Post date:** [May 30, 2020, 2:10pm UTC](https://community.neo4j.com/t/how-to-return-all-relements/19386/1 "2020-05-30T14:10:08Z")

</div>

Hi

I was wondering if you can help me please

I would like to return all element, but currently it only returns one element:

This is my schema query:

```auto
type Query {
	likers: [User]
		@cypher(
			statement: """
                              MATCH(u1: User)-[:LIKES]->(u2: User)
                              RETURN u1,u2
			"""
		)
}

```

In the above example, I would like to return both `u1` and `u2`, however the graphiql only returns u2:

```auto
query getLikers {
  likers {
    firstName
  }
}

```

returns:

```auto
{
  "data": {
    "LikeUser": [
      {
        "firstName": "user2"
      }
    ]
  }
}

```

Are you able to let me know what I am doing wrong please?

---

<div class="post-metadata">

**Author:** ![MuddyBootsCode](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/muddybootscode/32/10330_2.png) [@MuddyBootsCode](https://community.neo4j.com/u/MuddyBootsCode)\
**Post date:** [June 1, 2020, 7:55pm UTC](https://community.neo4j.com/t/how-to-return-all-relements/19386/2 "2020-06-01T19:55:36Z")

</div>

Welcome to community! Do you by chance have your schema handy? It'd be easier to help if we can see how you've got the laid out in your GraphQL schema.

---

<div class="post-metadata">

**Author:** ![AbdullahAli](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/abdullahali/32/11816_2.png) [@AbdullahAli](https://community.neo4j.com/u/AbdullahAli)\
**Post date:** [June 1, 2020, 8:44pm UTC](https://community.neo4j.com/t/how-to-return-all-relements/19386/3 "2020-06-01T20:44:16Z")

</div>

Hi @MuddyBootsCode - thank you for getting back to me and I appreciate the warm welcome!

I spent some more time on this forum and realised that what I was trying to return was a tuple (and my schema was completely wrong - apologies, I am still very new to using this project)

This forum post explained the issue that I was retrying to resolve: [GraphQL query returning list of objects](https://community.neo4j.com/t/graphql-query-returning-list-of-objects/16637)
