Equivalent of row_number in neo4j

Viewed 2087

I'm trying to run a query where I assign integers based on the order they appeared in the query. I'd like it to work to the effect of:

MATCH users RETURN users ORDER BY created_at SET user.number=ROW_NUMBER()

Is there a way to do this in a single query? Thanks!

1 Answers
Related