You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2020/12/22 11:59:00 UTC

[jira] [Commented] (TINKERPOP-2497) Gremlin JS Serializer always empty [{}] with valueMap(), entitypMap()

    [ https://issues.apache.org/jira/browse/TINKERPOP-2497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17253443#comment-17253443 ] 

Stephen Mallette commented on TINKERPOP-2497:
---------------------------------------------

I"m not sure what could be wrong. What graph database are you using? Note also that {{toList()}}` doesn't return a {{List}} but a {{Promise}} therefore:

{code}
g.V().hasLabel('person').valueMap('name').toList()
  .then(names => console.log(names));
{code}

or

{code}
const names = await g.V().hasLabel('person').valueMap('name').toList();
console.log(names);
{code}

Perhaps you could provide a more complete example of what you are doing?

> Gremlin JS Serializer always empty [{}] with valueMap(), entitypMap()
> ---------------------------------------------------------------------
>
>                 Key: TINKERPOP-2497
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2497
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: javascript
>    Affects Versions: 3.4.9
>            Reporter: Ben Smith
>            Priority: Minor
>
> Sorry if I made this ticket incorrectly.
>  
> I've installed gremlin as indicated.
> Running such a call as 
> g.V(id).elementMap().toList(); fails to return from my client application
> output results is always [{}]
> same with  return g.V(id).valueMap().toList();
> The above calls can output to the console correctly but not be serialized.
> Other toList calls work when the type is Vector. but seem to fail with Map.
> I am running Express, against Tinkertop 3.4. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)