GithubHelp home page GithubHelp logo

Slicing by uuid about neo4j-uuid HOT 3 CLOSED

 avatar commented on September 26, 2024
Slicing by uuid

from neo4j-uuid.

Comments (3)

ikwattro avatar ikwattro commented on September 26, 2024

I tried the following and the results are as expected :

neo4j-sh (?)$ MATCH (n) DETACH DELETE n;
+-------------------+
| No data returned. |
+-------------------+
Nodes deleted: 4
30 ms
neo4j-sh (?)$ WITH ["1sdasda","232erads","asdas3","4asdas"] as uuids
> UNWIND uuids as uuid
> CREATE (n:Node {uuid: uuid});
+-------------------+
| No data returned. |
+-------------------+
Nodes created: 4
Properties set: 4
Labels added: 4
16 ms
neo4j-sh (?)$ MATCH (n:Node) WHERE n.uuid > "232erads" RETURN n;
+---------------------------+
| n                         |
+---------------------------+
| Node[8198]{uuid:"asdas3"} |
| Node[8199]{uuid:"4asdas"} |
+---------------------------+
2 rows
24 ms
neo4j-sh (?)$

What have you tried exactly and what do you mean by inconsistent ?

from neo4j-uuid.

 avatar commented on September 26, 2024

My mistake, I was ordering in descending order by a timestamp and selecting the topmost uuid to slice with, expecting to receive 0 rows.
In another test I ordered by UUID and it performed as expected.

Would probably be helpful to others if this capability was added to your Cypher docs.

Thank you for the example btw!

from neo4j-uuid.

ikwattro avatar ikwattro commented on September 26, 2024

How to use ORDER BY is part of the Neo4j Cypher documentation

from neo4j-uuid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.