Skip to content

Conversation

@emcfarlane
Copy link
Owner

@emcfarlane emcfarlane commented May 10, 2023

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 emcfarlane self-assigned this May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants