Giter VIP home page Giter VIP logo

Comments (5)

MasterMedo avatar MasterMedo commented on June 4, 2024 1

I see two ways to tackle this.

  1. Add support for strings and escape the index when creating the cypher query with quotes.
  2. Support all data types by hashing the ID with a function to an integer.

What do you think, is there a better way for approaching this?

from gqlalchemy.

gitbuda avatar gitbuda commented on June 4, 2024

Both options should be fine 😄 Option 1. seems a bit better to me because the same values are used directly (all types could be supported).

from gqlalchemy.

MasterMedo avatar MasterMedo commented on June 4, 2024

Yeah, I agree for strings, but what do you mean by "all types could be supported"? How would you support IDs of type "Person", for example? By using the hash approach that would be trivial.

Maybe we could support built-in types by escaping them so the representation stays the same, but if the type is unknown we could use the python built-in "id" function to get the id.

from gqlalchemy.

jbajic avatar jbajic commented on June 4, 2024

Thanks for reporting the issue, I agree with option one, this was overlooked in the initial implementation...

from gqlalchemy.

gitbuda avatar gitbuda commented on June 4, 2024

Here is a minimal example, example.py produces queries that can't be imported. Please rename the example files because .py and .dot can't be directly uploaded here 😄

example_dot.txt
example_py.txt
requirements.txt

from gqlalchemy.

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.