Daewon Jeong created S2GRAPH-207:
------------------------------------

             Summary: Provides a way to query data with the value of the Vertex 
property in a GraphQL query.
                 Key: S2GRAPH-207
                 URL: https://issues.apache.org/jira/browse/S2GRAPH-207
             Project: S2Graph
          Issue Type: Improvement
          Components: s2core, s2graphql
            Reporter: Daewon Jeong
            Assignee: Daewon Jeong


h1. Provides a way to query data with the value of the Vertex property in a 
GraphQL query.

Now implementations in GraphQL need to know the starting Vertex ID to be able 
to query.

 

Suppose have the following user.
{noformat}
User {
  id: "daewon"
  age: 35
}
{noformat}
 

The query that fetch a friends of user 'daewon' is shown below. It works well.
{noformat}
  User(id: "daewon") { 
    friends { 
      id 
    } 
  }
{noformat}
 

This time, let's consider a query that fetch a friends who is older than 30 
years old.

Below is the expected query.
{noformat}
Kakao {
  User(search: "age > 30") {
    id
    name
    friends {
      User {
        id
        name
      }
    }
  }
}
{noformat}
However, this feature is not available at this time.

 

Things to implement
 - Must be able to use the properties of 'User' ServiceColumn as a parameter in 
'search'
 - Should be able to find vertices that match the properties defined in the 
above parameters(search).

 

Associated issues that must be preceded and handled
 - Provide global index: https://issues.apache.org/jira/browse/S2GRAPH-151
 - Refactor S2Query to specify index on getVertices: 
https://issues.apache.org/jira/browse/S2GRAPH-155



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to