Skip to content

Commit

Permalink
fix: esModuleInterop not working for object-hash and dataloader impor…
Browse files Browse the repository at this point in the history
…ts (#794)

* Fixing esModuleInterop

* Making Prettier happy.
  • Loading branch information
turulix authored May 28, 2023
1 parent a67ceee commit 9fc9632
Show file tree
Hide file tree
Showing 8 changed files with 808 additions and 5 deletions.
Binary file not shown.
50 changes: 50 additions & 0 deletions integration/batching-with-context-esModuleInterop/batching.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
syntax = "proto3";
package batching;

service EntityService {
rpc BatchQuery(BatchQueryRequest) returns (BatchQueryResponse);

rpc BatchMapQuery(BatchMapQueryRequest) returns (BatchMapQueryResponse);

// Add a method that is not batchable to show it's still cached
rpc GetOnlyMethod(GetOnlyMethodRequest) returns (GetOnlyMethodResponse);

// Add a method that won't get cached
rpc WriteMethod(WriteMethodRequest) returns (WriteMethodResponse);
}

message BatchQueryRequest {
repeated string ids = 1;
}

message BatchQueryResponse {
repeated Entity entities = 1;
}

message BatchMapQueryRequest {
repeated string ids = 1;
}

message BatchMapQueryResponse {
map<string, Entity> entities = 1;
}

message GetOnlyMethodRequest {
string id = 1;
}

message GetOnlyMethodResponse {
Entity entity = 1;
}

message WriteMethodRequest {
string id = 1;
}

message WriteMethodResponse {
}

message Entity {
string id = 1;
string name = 2;
}
Loading

0 comments on commit 9fc9632

Please sign in to comment.