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

mergeV requires key of 'new' to be quoted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6.0, 3.6.1, 3.6.2
    • 3.7.0, 3.6.3
    • language
    • None

    Description

      When using text based queries the Antlr grammar does not seem to like certain keys being unquoted. In the example below, there will be a parse error thrown unless the key 'new' is in quotes. Note the other keys used are not quoted.

       

      g.mergeV([id:'X1', name:'M1']).
      option(Merge.onCreate,['new':true]).
      option(Merge.onMatch,[year:2023]).
      valueMap()
      {'new': [True], 'year': [2023], 'name': ['M1']}
      

       

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            krlawrence Kelvin Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: