You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "Daewon Jeong (JIRA)" <ji...@apache.org> on 2018/06/18 09:40:00 UTC
[jira] [Commented] (S2GRAPH-202) Propose that the contents of a
property can be searched in Verterx queries
[ https://issues.apache.org/jira/browse/S2GRAPH-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16515537#comment-16515537 ]
Daewon Jeong commented on S2GRAPH-202:
--------------------------------------
close issue for duplicate S2GRAPH-207
> Propose that the contents of a property can be searched in Verterx queries
> --------------------------------------------------------------------------
>
> Key: S2GRAPH-202
> URL: https://issues.apache.org/jira/browse/S2GRAPH-202
> Project: S2Graph
> Issue Type: New Feature
> Components: s2core, s2graphql
> Reporter: Daewon Jeong
> Assignee: Daewon Jeong
> Priority: Minor
>
> h1. 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`.
> h2. Expected implementation specification.
> Assuming that the following ServiceColumn is defined
> {noformat}
> ServiceColumn: { props: ["title"] }
> {noformat}
> Operation list
> '=': If the value of the property matches the supplied string
> 'contains': The value of the property contains the supplied string.
> To be
> {noformat}
> query {
> movielens {
> Movie(search: "title contains 'star wars'", offset: 0, limit: 10) {
> age
> title
> }
> }
> }
> {noformat}
> As is
> {noformat}
> query {
> movielens {
> Movie(id: 1) {
> age
> title
> }
> }
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)