Skip to content

Protoc compiler extension that produces a grahpql schema

Notifications You must be signed in to change notification settings

reverbdotcom/protoc-gen-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-graphql

Produces a graphql schema from your protos.

Usage:

make compiles Linux and MacOS binaries to ./target/protoc-gen-graphql.linux and ./target/protoc-gen-graphql.darwin.

To generate a schema.graphql file with protoc, copy or symlink the platform-specific binary to protoc-gen-graphql, then run:

protoc \
-I your_protos_dir \
--plugin ./protoc-gen-graphql \
--graphql_out=file_out=schema.graphql,root_query=GraphQL:your_schemas_dir \
your_protos_dir/message.proto

About

Protoc compiler extension that produces a grahpql schema

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •