# Accessing index of parameters works on array but not an array of arrays

**URL:** <https://community.neo4j.com/t/accessing-index-of-parameters-works-on-array-but-not-an-array-of-arrays/46356>\
**Category:** Cypher\
**Tags:** parameters\
**Created:** [October 24, 2021, 12:36pm UTC](https://community.neo4j.com/t/accessing-index-of-parameters-works-on-array-but-not-an-array-of-arrays/46356 "2021-10-24T12:36:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/mike/32/334_2.png) [@mike](https://community.neo4j.com/u/mike)\
**Post date:** [October 24, 2021, 12:36pm UTC](https://community.neo4j.com/t/accessing-index-of-parameters-works-on-array-but-not-an-array-of-arrays/46356/1 "2021-10-24T12:36:36Z")

</div>

Hi,

If I set param in Neo4j desktop for an array, e.g  
:param pmrs=\>["a", "b", "c"]

I can access each in cypher by indexing $pmrs[0], $pmrs[1], $pmrs[2]

But if I set params as an array of arrays, e.g  
[["a", "b", "c"], ["x", "y", "z"]]

I can access the initial index, $pmrs[0] which returns the a,b,c array, but I get an empty (not null) response for $pmrs[1]?

Any pointers would be gratefully received  
Cheers,  
Mike

---

<div class="post-metadata">

**Author:** ![Bennu](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bennu/32/11659_2.png) [@Bennu](https://community.neo4j.com/u/Bennu)\
**Post date:** [October 25, 2021, 2:58pm UTC](https://community.neo4j.com/t/accessing-index-of-parameters-works-on-array-but-not-an-array-of-arrays/46356/2 "2021-10-25T14:58:51Z")

</div>

Hi @mike !

Which version of the DB are you using? Everything looks fine on 4.3ish.

 ![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/d/b/db60c2671fe4c1212f05e55899d5f0627846c7c4.png)

Bennu

---

<div class="post-metadata">

**Author:** ![mike](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/mike/32/334_2.png) [@mike](https://community.neo4j.com/u/mike)\
**Post date:** [October 25, 2021, 3:43pm UTC](https://community.neo4j.com/t/accessing-index-of-parameters-works-on-array-but-not-an-array-of-arrays/46356/3 "2021-10-25T15:43:58Z")

</div>

Hi Bennu,

Thanks for the feedback, we're on 4.3.5. enterprise.

When I test just to return as you have it works fine - must be something else in our code that's the problem....

Cheers,  
Mike
