Skip to content

Commit

Permalink
chore: remove comments from schema file (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Feb 10, 2022
1 parent cf0e88e commit b5a1c3a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/amplify_datastore/example/tool/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# This "input" configures a global authorization rule to enable public access to
# all models in this schema. Learn more about authorization rules here: https://docs.amplify.aws/cli/graphql/authorization-rules
input AMPLIFY {
globalAuthRule: AuthRule = { allow: public }
} # FOR TESTING ONLY!
}
type Blog @model {
id: ID!
name: String!
Expand Down Expand Up @@ -33,7 +31,6 @@ type Tag @model {
posts: [Post] @manyToMany(relationName: "PostTags")
}

# scalar types, enum and CustomType
type ModelWithAppsyncScalarTypes @model {
id: ID!
stringValue: String
Expand Down Expand Up @@ -112,9 +109,6 @@ type SimpleCustomType {
foo: String!
}

# Model relationships

# models with has one relationship
type HasOneParent @model {
id: ID!
name: String
Expand All @@ -128,7 +122,6 @@ type HasOneChild @model {
name: String
}

# models with has many relationship
type HasManyParent @model {
id: ID!
name: String
Expand Down Expand Up @@ -175,7 +168,6 @@ type HasManyChildBiDirectionalExplicit @model {
@belongsTo(fields: ["hasManyParentId"])
}

# models with belongs to relationship
type BelongsToParent @model {
id: ID!
name: String
Expand All @@ -196,7 +188,6 @@ type BelongsToChildExplicit @model {
belongsToParent: BelongsToParent @belongsTo(fields: ["belongsToParentID"])
}

# models with multiple relationships
type MultiRelatedMeeting @model {
id: ID! @primaryKey
title: String!
Expand Down

0 comments on commit b5a1c3a

Please sign in to comment.