-
Notifications
You must be signed in to change notification settings - Fork 353
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
Add URL param support for populating editor with Cypher and parameters #956
Conversation
will this be included in some |
a852ab0
to
64fbe33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM ┌(ㆆ㉨ㆆ)ʃ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a quick questions, otherwise LGTM
cypher: (_, args) => args.join('\n') | ||
cypher: (_, args) => args.join('\n'), | ||
param: (cmdchar, args) => `${cmdchar}param ${args.join(' ')}`, | ||
params: (cmdchar, args) => `${cmdchar}params ${args.join(' ')}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to worry about interoperability here? can :play
accept params? Also what happens if provided params are malformed/invalid?
WDYT about using |
c7cedd5
to
8930e10
Compare
Add newline for each query. Semi-colons are up to the user to add.
8930e10
to
8088824
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ٩(●ᴗ●)۶
Add newline for each query.
Semi-colons are up to the user to add.
Example usages:
http://localhost:7474/?cmd=edit&arg=RETURN%201;&arg=RETURN%20rand();
http://localhost:7474/?cmd=param&arg=x%20%3d%3E%201;
http://localhost:7474/?cmd=params&arg={x:1.0,%20y:%22hello%22}
Since it's not limited to Cypher, but works for populating the editor with anything the command is was decided to be
edit
.Cypher:

Param:

Params:
