1
- # This "input" configures a global authorization rule to enable public access to
2
- # all models in this schema. Learn more about authorization rules here: https://docs.amplify.aws/cli/graphql/authorization-rules
3
1
input AMPLIFY {
4
2
globalAuthRule : AuthRule = { allow : public }
5
- } # FOR TESTING ONLY!
3
+ }
6
4
type Blog @model {
7
5
id : ID !
8
6
name : String !
@@ -33,7 +31,6 @@ type Tag @model {
33
31
posts : [Post ] @manyToMany (relationName : " PostTags" )
34
32
}
35
33
36
- # scalar types, enum and CustomType
37
34
type ModelWithAppsyncScalarTypes @model {
38
35
id : ID !
39
36
stringValue : String
@@ -112,9 +109,6 @@ type SimpleCustomType {
112
109
foo : String !
113
110
}
114
111
115
- # Model relationships
116
-
117
- # models with has one relationship
118
112
type HasOneParent @model {
119
113
id : ID !
120
114
name : String
@@ -128,7 +122,6 @@ type HasOneChild @model {
128
122
name : String
129
123
}
130
124
131
- # models with has many relationship
132
125
type HasManyParent @model {
133
126
id : ID !
134
127
name : String
@@ -175,7 +168,6 @@ type HasManyChildBiDirectionalExplicit @model {
175
168
@belongsTo (fields : ["hasManyParentId" ])
176
169
}
177
170
178
- # models with belongs to relationship
179
171
type BelongsToParent @model {
180
172
id : ID !
181
173
name : String
@@ -196,7 +188,6 @@ type BelongsToChildExplicit @model {
196
188
belongsToParent : BelongsToParent @belongsTo (fields : ["belongsToParentID" ])
197
189
}
198
190
199
- # models with multiple relationships
200
191
type MultiRelatedMeeting @model {
201
192
id : ID ! @primaryKey
202
193
title : String !
0 commit comments