larking icon indicating copy to clipboard operation
larking copied to clipboard

WIP: GraphQL bindings with protobuffer annotations

Open emcfarlane opened this issue 2 years ago • 0 comments

Bind services to graphql methods with protobuf annotations.

message Faction {
  string name = 1;
  string display_name = 2;
  option (larking.api.edge) = {
    name : "ships"
    method : "/larking.api.StarWars/ListShips"
  };
}

service StarWars {
   rpc GetFaction(GetFactionRequest) returns (Faction) {
     option (larking.api.graphql) = {
       query : "faction"
     };
  }
}

emcfarlane avatar May 10 '23 15:05 emcfarlane