micro-proto/graphql/graphql.proto
Vasiliy Tolstov 61a369ef17
Some checks failed
test / test (push) Failing after 13s
fixup tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-12-12 12:27:13 +03:00

63 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
package micro.graphql;
option go_package = "go.unistack.org/micro-proto/v3/graphql;graphql";
import "google/protobuf/descriptor.proto";
// TODO: Email protobuf-global-extension-registry@google.com to get an extension ID.
extend google.protobuf.MethodOptions {
Rpc rpc = 65030;
}
extend google.protobuf.ServiceOptions {
Svc svc = 65030;
}
extend google.protobuf.FieldOptions {
Field field = 65030;
}
extend google.protobuf.OneofOptions {
Oneof oneof = 65030;
}
message Oneof {
bool ignore = 4;
string name = 5;
}
message Field {
bool required = 1;
string params = 2;
string dirs = 3;
bool ignore = 4;
string name = 5;
}
message Rpc {
Type type = 1;
bool ignore = 2;
string name = 3;
}
message Svc {
Type type = 1;
bool ignore = 2;
string name = 3;
Upstream upstream = 4;
}
enum Type {
DEFAULT = 0;
MUTATION = 1;
QUERY = 2;
}
enum Upstream {
UPSTREAM_UNSPECIFIED = 0;
UPSTREAM_SERVER = 1;
UPSTREAM_CLIENT = 2;
}