Skip to content

Commit b5a1c3a

Browse files
chore: remove comments from schema file (#1347)
1 parent cf0e88e commit b5a1c3a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/amplify_datastore/example/tool/schema.graphql

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
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
31
input AMPLIFY {
42
globalAuthRule: AuthRule = { allow: public }
5-
} # FOR TESTING ONLY!
3+
}
64
type Blog @model {
75
id: ID!
86
name: String!
@@ -33,7 +31,6 @@ type Tag @model {
3331
posts: [Post] @manyToMany(relationName: "PostTags")
3432
}
3533

36-
# scalar types, enum and CustomType
3734
type ModelWithAppsyncScalarTypes @model {
3835
id: ID!
3936
stringValue: String
@@ -112,9 +109,6 @@ type SimpleCustomType {
112109
foo: String!
113110
}
114111

115-
# Model relationships
116-
117-
# models with has one relationship
118112
type HasOneParent @model {
119113
id: ID!
120114
name: String
@@ -128,7 +122,6 @@ type HasOneChild @model {
128122
name: String
129123
}
130124

131-
# models with has many relationship
132125
type HasManyParent @model {
133126
id: ID!
134127
name: String
@@ -175,7 +168,6 @@ type HasManyChildBiDirectionalExplicit @model {
175168
@belongsTo(fields: ["hasManyParentId"])
176169
}
177170

178-
# models with belongs to relationship
179171
type BelongsToParent @model {
180172
id: ID!
181173
name: String
@@ -196,7 +188,6 @@ type BelongsToChildExplicit @model {
196188
belongsToParent: BelongsToParent @belongsTo(fields: ["belongsToParentID"])
197189
}
198190

199-
# models with multiple relationships
200191
type MultiRelatedMeeting @model {
201192
id: ID! @primaryKey
202193
title: String!

0 commit comments

Comments
 (0)