protoc-gen-graphql

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 10 Imported by: 0

README

protoc-gen-graphql

protoc plugin binary.

Usage

Download binary which corresponds to runtime version via Release Page and place in $PATH directory.

Compile with this plugin example:

protoc \
    -I. \
    --graphql_out=[arguments]:[output_dir] \
    --go_out=plugins=grpc:[output_dir] \
    example.proto

Compilation Arguments

This plugin accepts some compile arguments:

  • --graphql_out=verbose: verbose debug output
  • --graphql_out=exclude=[regex]: exclude generation package with regexp
  • --graphql_out=field_proto: by default all graphql fields will use json_name as the field name, providing this option will instead use the raw protobuf name.

All arguments can be provide by splitting comma.

Binary Option

Typically protoc-gen-graphql will process via stdin but some option can accept for development:

  • protoc-gen-graphql -v: Print plugin version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL