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

is it possible to compose "CREATE EDGE AEdge FROM (#65:0) TO (#23:1,#26:1,#29:0,#36:0,#53:0,#41:0)" #7588

Closed
HuangKBAaron opened this issue Jul 26, 2017 · 3 comments
Assignees
Labels

Comments

@HuangKBAaron
Copy link

OrientDB Version: 2.2.20

Java Version: 1.8

OS: Windows 10

Expected behavior

expect to compose something like this:
CREATE EDGE AEdge FROM (#65:0) TO (#23:1,#26:1,#29:0,#36:0,#53:0,#41:0)

Actual behavior

report error.

Steps to reproduce

n/a

@luigidellaquila
Copy link
Member

Hi @HuangKBAaron

You have to use square brackets to define collections:

CREATE EDGE AEdge FROM #65:0 TO [#23:1,#26:1,#29:0,#36:0,#53:0,#41:0]

Thanks

Luigi

@HuangKBAaron
Copy link
Author

HuangKBAaron commented Jul 26, 2017

copied from the doc:

CREATE EDGE <class> [CLUSTER <cluster>] FROM <rid>|(<query>)|[<rid>]* TO <rid>|(<query>)|[<rid>]*
                    [SET <field> = <expression>[,]*]|CONTENT {<JSON>}
                    [RETRY <retry> [WAIT <pauseBetweenRetriesInMs]] [BATCH <batch-size>]

the "[<rid>]*" is confusing, it might be better as "[<rid>,*]" ?

@luigidellaquila
Copy link
Member

Yes, definitely, I'm updating the docs

Thanks

Luigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants