cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

mike
Graph Buddy

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

2 REPLIES 2

Bennu
Graph Fellow

Hi @mike !

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

Bennu

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