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

Empty output #1

Open
gnur opened this issue Feb 21, 2019 · 1 comment
Open

Empty output #1

gnur opened this issue Feb 21, 2019 · 1 comment
Labels
question Further information is requested

Comments

@gnur
Copy link

gnur commented Feb 21, 2019

Hi,

I tried to generate some graphql schemas but so far I'm getting (nearly) empty output.

Input definition:

syntax = "proto3";

package metadata;

message Example {
  string msg = 1;
  string source = 2;
  string provider = 4;
}

Output:

# Code generated by protoc-gen-gogql. DO NOT EDIT
# source: metadata-definitions/protobuf/example.proto

Command used:
protoc --gql_out=paths=source_relative:. -I=${GOPATH}/pkg/mod/ -I=. -I=metadata-definitions/protobuf/ metadata-definitions/protobuf/example.proto

Versions:

$ protoc --version
libprotoc 3.6.1
$ go version
go version go1.11.5 darwin/amd64

Running this on my mac with zsh. Any ideas what could be wrong?

@danielvladco
Copy link
Owner

danielvladco commented Feb 21, 2019

Hi,

Thank you for your feedback, I did not mention this in readme but actually this script generates output only for messages that are used by some service. It is made this way to be able to determine if we need to generate an input or a type. So if you will create an service like service { rpc Ex(Example) returns (Example); } it will generate an input Example { //… } and a type Example { //… }.

@danielvladco danielvladco added the help wanted Extra attention is needed label Apr 26, 2019
@danielvladco danielvladco added question Further information is requested and removed help wanted Extra attention is needed labels Feb 7, 2020
@danielvladco danielvladco pinned this issue Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants