[
https://issues.apache.org/jira/browse/TINKERPOP-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16337457#comment-16337457
]
ASF GitHub Bot commented on TINKERPOP-1874:
-------------------------------------------
Github user jorgebay commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/784#discussion_r163525550
--- Diff: docs/src/dev/io/graphson.asciidoc ---
@@ -3580,6 +3572,41 @@ The following `Bytecode` example represents the
traversal of `g.V().hasLabel('pe
}
----
+==== P within
--- End diff --
Good idea to add `within` and `without` examples. Can we also add a little
introductory text saying that `P` expects a single value or a list of values,
except in the case of `within` and `without` where its always a list of values?
> P does not appear to be serialized consistently in GraphSON
> -----------------------------------------------------------
>
> Key: TINKERPOP-1874
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1874
> Project: TinkerPop
> Issue Type: Bug
> Components: io
> Affects Versions: 3.2.7
> Reporter: stephen mallette
> Assignee: stephen mallette
> Priority: Major
>
> {{P}} deserialization seems to expect {{List}} arguments for collection
> oriented operators like {{within}} and {{outside}} so {{P.without("x")}}
> should wrap "x" in a {{List}} for serialization purposes. This causes
> weirdness in some GLVs. For example in .NET we see that the use of
> {{P.without("x")}} fails to deserialize the bytecode, but {{P.Without(new
> List<string>{"x"})}} will work fine. Just need to get this all straight and
> consistent.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)