Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-202

Propose that the contents of a property can be searched in Verterx queries

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: s2core, s2graphql
    • Labels:
      None

      Description

      Propose that the contents of a property can be searched in Verterx queries

      Currently, you need to know the ID of the vertex when querying the ServiceColum.
        ex) Movie(id: 1)

      Add search function to allows you to perform queries even if you do not know the Vertex ID.
        ex) Movie(search: "title has 'star wars'")

      Also, since the amount of search may be large in this case, the functions provided by the Label also provide functions such as `offset/limit`.

      Expected implementation specification.

      Assuming that the following ServiceColumn is defined

      ServiceColumn: { props: ["title"] }  
      

      Operation list
      '=': If the value of the property matches the supplied string
      'contains': The value of the property contains the supplied string.

      To be

      query {
        movielens {
          Movie(search: "title contains 'star wars'", offset: 0, limit: 10) {
            age
            title
          }
        }
      }
      

      As is

      query {
        movielens {
          Movie(id: 1) {
            age
            title            
          }
        }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              daewon Daewon Jeong
              Reporter:
              daewon Daewon Jeong
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: