-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema_with_lizard.txt
69 lines (69 loc) · 1.63 KB
/
schema_with_lizard.txt
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
mutation {
upsertSchemaDefinition(schemaDef: {
name: "Pet",
idGeneration: Client,
domainFields: [{
memberType: String,
memberFieldName: "name",
memberDescription: "The Name of the Pet"
},{
memberType: Integer,
memberFieldName: "weight",
memberDescription: "How heavy."
},{
memberType: Enum,
memberFieldName: "weightUnit",
memberDescription: "The units of the weight. e.g. oz, lbs, grams etc.",
enumValues: [{
name: "tons",
value: "2_THOUSAND_POUNDS"
}, {
name: "pounds",
value: "POUNDS"
}, {
name: "ounces",
value: "OUNCES"
}, {
name: "kilos",
value: "KILOGRAMS"
}, {
name: "grams",
value: "GRAMS"
}]
},{
memberType: Enum,
memberFieldName: "type",
memberDescription: "The kind of pet.",
enumValues: [{
name: "Dog",
value: "DOG"
}, {
name: "Cat",
value: "CAT"
}, {
name: "Bird",
value: "BIRD"
}, {
name: "Hampster",
value: "HAMPSTER"
}, {
name: "Snake",
value: "snake"
}, {
name: "Fish",
value: "FISH"
}, {
name: "Lizard",
value: "LIZARD"
}]
}]
})
{
name,
domainFields {
memberType,
memberFieldName,
memberDescription
}
}
}