Skip to content

Commit 4790ecb

Browse files
Add response to proto
1 parent 208e1ec commit 4790ecb

File tree

3 files changed

+383
-294
lines changed

3 files changed

+383
-294
lines changed

pydgraph/proto/api.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,21 @@ message Request {
5252

5353
repeated Mutation mutations = 12;
5454
bool commit_now = 13;
55+
enum RespFormat {
56+
JSON = 0;
57+
RDF = 1;
58+
}
59+
RespFormat resp_format = 14;
5560
}
5661

5762
message Uids {
5863
repeated string uids = 1;
5964
}
6065

66+
message ListOfString {
67+
repeated string value = 1;
68+
}
69+
6170
message Response {
6271
bytes json = 1;
6372
TxnContext txn = 2;
@@ -67,6 +76,8 @@ message Response {
6776
// uids contains a mapping of blank_node => uid for the node. It only returns uids
6877
// that were created as part of a mutation.
6978
map<string, string> uids = 12;
79+
bytes rdf = 13;
80+
map<string, ListOfString> hdrs = 14;
7081
}
7182

7283
message Mutation {

0 commit comments

Comments
 (0)