-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathschema.graphql
More file actions
37 lines (35 loc) · 1.04 KB
/
schema.graphql
File metadata and controls
37 lines (35 loc) · 1.04 KB
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
interface gcpBaseResource
@generate(
query: { get: true, query: true, aggregate: true }
mutation: { add: true, delete: false }
subscription: false
) {
id: String! @id @search(by: [hash])
projectId: String! @search(by: [hash, regexp])
region: String @search(by: [hash, regexp])
name: String @search(by: [hash, regexp])
kind: String @search(by: [hash, regexp])
labels: [gcpRawLabel]
}
type gcpKeyValue
@generate(
query: { get: true, query: true, aggregate: true }
mutation: { add: true, delete: false }
subscription: false
)
@key(fields: "id") {
id: String! @id @search(by: [hash])
key: String! @search(by: [hash, regexp])
value: String @search(by: [hash, regexp])
}
type gcpKeyValues
@generate(
query: { get: true, query: true, aggregate: true }
mutation: { add: true, delete: false }
subscription: false
)
@key(fields: "id") {
id: String! @id @search(by: [hash])
key: String! @search(by: [hash, regexp])
values: [String] @search(by: [hash, regexp])
}