Comments (5)
I see two ways to tackle this.
- Add support for strings and escape the index when creating the cypher query with quotes.
- 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.
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.
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.
Thanks for reporting the issue, I agree with option one, this was overlooked in the initial implementation...
from gqlalchemy.
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)
- Migrate docs from Memgraph docs repo to GQLAlchemy repo
- [BUG] Inclusion of the docker dependency bring in pywin32 which has an outstanding vulnerability HOT 1
- [BUG] Relax neo4j dependency version
- Expand LOAD CSV with remote CSV location HOT 2
- [BUG] Missing Cypher operators HOT 1
- Markdown lists in the documentation are not always rendered in the correct way
- Update GQLAlchemy documentation
- Update manage streams how-to guide
- Update import data from different sources how-to guide
- Update manage instances how-to guide
- Update use on-disk storage how-to guide
- Update manage database triggers how-to guide
- Add new GQLAlchemy how-to guides if needed (for features that are not documented)
- [BUG] : undefined symbol: `EVP_PKEY_base_id` (in `mgclient.cpython-39-x86_64-linux-gnu.so`) HOT 19
- Missing documentation section on execute()
- GQLAlchemy can't be installed on Windows with Python 3.11 HOT 2
- Propagate autocommit flag from pymgclient to gqlalchemy
- Support: Confusion over usage of `Field` class HOT 8
- Add IS NOT NULL to query builder
- undefined symbol: SSL_get1_peer_certificate HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gqlalchemy.