Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2450

Get Correct Result when working with gremlin-server and javascript

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: server
    • Labels:
      None

      Description

      I have installed gremlin-server docker image. I am able to connect to it from javascript client and execute addV and V to list the nodes. 

      I am not sure what is going on, but 
          const list = await g.V().valueMap().toList();
          console.log(list);
          console.log(JSON.stringify(list));
      produces:

         [ Vertex { id: 0, label: 'person', properties: undefined } ]
         [\{"id":0,"label":"person"}]

      Now, let's use valueMap:

          const list = await g.V().valueMap().toList(); 
          console.log(list);
          console.log(JSON.stringify(list));
       
      produces:
       
         [ Map { 'name' => [ 'foo' ] } ]
         [{}]
       
      So, is serialization an issue? or do I need to configure server properly? or...
       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              serguk86 Serg Salo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: