Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create (n) statement not supported #954

Closed
bluejoe2008 opened this issue Dec 23, 2020 · 1 comment
Closed

create (n) statement not supported #954

bluejoe2008 opened this issue Dec 23, 2020 · 1 comment

Comments

@bluejoe2008
Copy link

I want to use okapi to enable insert nodes/edges into graph via using cypher statements like create (n)
however it throws exception on IRBuilder.process() which tell create statement is unknown
can you give me any suggestion?

Thank you very much!

@Mats-SX
Copy link
Member

Mats-SX commented Jan 4, 2021

Hello @bluejoe2008 and thanks for reaching out to us.

First, I'd like to clarify the status of this project as currently not being in development. You can read a more comprehensive answer on why in #950.

Second, the updating clauses of Cypher were not in scope for Morpheus even when development was active. This includes the clauses CREATE, MERGE, SET, DELETE, and REMOVE. In order to create graphs, you will have to make use of the Property Graph Data Sources (PGDS), which provide endpoint-specific formats where nodes can be added in various ways. For example, you can create nodes with full Cypher support in a Neo4j database and connect it to Morpheus using a Neo4j PGDS (example). Or, you can use Scala case classes and create nodes (and relationships) in Scala code and create a Morpheus graph directly from these (example).

I hope this is helpful!
Regards
Mats

@Mats-SX Mats-SX closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants