Github user spmallette commented on the issue:

    https://github.com/apache/tinkerpop/pull/922
  
    `addProperty()` looks right.  On `tp32` I guess the default is GraphSON 2.0 
which has this form for `Cardinality` values:
    
    http://tinkerpop.apache.org/docs/3.2.9/dev/io/#_cardinality
    
    I see that the `accept` is set to "application/json". On `tp32` I think 
that defaults to GraphSON 1.0 which wouldn't be able to deal with complex 
objects. You can only pass primitives that are compatible with JSON data types. 
Does it work if you don't use `Cardinality`? maybe, just do something more 
simple like:
    
    ````js
    connection.submit('x+y', { x: 1, y: 1 } );
    ```
    
    If that works then change to GraphSON 2.0 - 
"application/vnd.gremlin-v2.0+json" - and see what happens for complex stuff 
like:
    
    ````js
    connection.submit(card.toString()', { card: t.cardinality.set } );
    ```


---

Reply via email to