-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: esModuleInterop not working for object-hash and dataloader impor…
…ts (#794) * Fixing esModuleInterop * Making Prettier happy.
- Loading branch information
Showing
8 changed files
with
808 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
50 changes: 50 additions & 0 deletions
50
integration/batching-with-context-esModuleInterop/batching.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.