Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: GraphQL bindings with protobuffer annotations #99

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant