Skip to content

Commit bb59512

Browse files
author
haikalpribadi
committed
Introduce Graql Update query into proto
1 parent aaccce6 commit bb59512

File tree

1 file changed

+27
-16
lines changed

1 file changed

+27
-16
lines changed

protobuf/query.proto

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,29 @@ message Query {
3030
message Req {
3131
Options options = 1;
3232
oneof req {
33-
Delete.Req delete_req = 100;
34-
Define.Req define_req = 101;
35-
Undefine.Req undefine_req = 102;
36-
Match.Req match_req = 103;
37-
MatchAggregate.Req match_aggregate_req = 104;
38-
MatchGroup.Req match_group_req = 105;
39-
MatchGroupAggregate.Req match_group_aggregate_req = 106;
40-
Insert.Req insert_req = 107;
33+
Define.Req define_req = 100;
34+
Undefine.Req undefine_req = 101;
35+
Match.Req match_req = 102;
36+
MatchAggregate.Req match_aggregate_req = 103;
37+
MatchGroup.Req match_group_req = 104;
38+
MatchGroupAggregate.Req match_group_aggregate_req = 105;
39+
Insert.Req insert_req = 106;
40+
Delete.Req delete_req = 107;
41+
Update.Req update_req = 108;
4142
}
4243
}
4344

4445
message Res {
4546
oneof res {
46-
Delete.Res delete_res = 100;
47-
Define.Res define_res = 101;
48-
Undefine.Res undefine_res = 102;
49-
Match.Res match_res = 103;
50-
MatchAggregate.Res match_aggregate_res = 104;
51-
MatchGroup.Res match_group_res = 105;
52-
MatchGroupAggregate.Res match_group_aggregate_res = 106;
53-
Insert.Res insert_res = 107;
47+
Define.Res define_res = 100;
48+
Undefine.Res undefine_res = 101;
49+
Match.Res match_res = 102;
50+
MatchAggregate.Res match_aggregate_res = 103;
51+
MatchGroup.Res match_group_res = 104;
52+
MatchGroupAggregate.Res match_group_aggregate_res = 105;
53+
Insert.Res insert_res = 106;
54+
Delete.Res delete_res = 107;
55+
Update.Res update_res = 108;
5456
}
5557
}
5658

@@ -109,6 +111,15 @@ message Query {
109111
message Res {}
110112
}
111113

114+
message Update {
115+
message Req {
116+
string query = 1;
117+
}
118+
message Res {
119+
repeated ConceptMap answers = 1;
120+
}
121+
}
122+
112123
message Define {
113124
message Req {
114125
string query = 1;

0 commit comments

Comments
 (0)