-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.proto
45 lines (36 loc) · 1.31 KB
/
schema.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
syntax = "proto3";
package graphql;
import "google/protobuf/descriptor.proto";
option go_package="go.appointy.com/jaal/schema";
extend google.protobuf.MethodOptions {
// schema is used to tag an rpc as query or mutation.
MethodOptions schema = 91111;
}
extend google.protobuf.MessageOptions{
// skip is used to skip the registration of a message on the graphql schema.
bool skip = 91112;
// name is used to change default name of message on graphql schema.
string name = 91114;
// type is used to change go type of the message in the gq file.
string type = 91117;
}
extend google.protobuf.FileOptions{
// file_skip is used to skip the generation of gq file.
bool file_skip = 91113;
}
extend google.protobuf.FieldOptions{
// input_skip is used to skip the registration of the field on input object.
bool input_skip = 91115;
// payload_skip is used to skip the registration of the field on payload object.
bool payload_skip = 91116;
// id is used to expose the field as graphQL ID. Only string field can be tagged with this option.
bool id = 91120;
// field_name is used to change the default name of field on graphql schema.
string field_name = 91121;
}
message MethodOptions {
oneof type {
string query = 1;
string mutation = 2;
}
}