[
https://issues.apache.org/jira/browse/TINKERPOP-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16638305#comment-16638305
]
ASF GitHub Bot commented on TINKERPOP-1959:
-------------------------------------------
Github user mattallenuk commented on the issue:
https://github.com/apache/tinkerpop/pull/922
@jorgebay @spmallette So I've written the following test, however I'm
getting a Provided key/value array length must be a multiple of two when
submitting. I am guessing this is due to submitting the cardinality as a string
value. How should non-native JS types be submitted via script?
`connection.submit('g.V(vert).property(card, nm, val)', { vert: 1, card:
t.cardinality.set, nm: 'test', val: 12 } )`
this produces:
[RequestMessage{, requestId='reqid', op='eval', processor='',
args={gremlin=g.V(1).property(card, nm, val), aliases={g=gmodern},
bindings={vert=1, card=set, nm=test, val=12}, language=gremlin-groovy,
accept=application/json}}]
> Provide a way to submit scripts to the server in gremlin-javascript
> -------------------------------------------------------------------
>
> Key: TINKERPOP-1959
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1959
> Project: TinkerPop
> Issue Type: Improvement
> Components: javascript
> Affects Versions: 3.2.8
> Reporter: stephen mallette
> Priority: Critical
>
> It is currently only possible to submit bytecode based requests to the server
> with gremlin-javascript. We should also provide some means for submitting
> scripts.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)