Skip to content

Commit 118ed62

Browse files
authored
fix: update codegen models to use v2 schema shapes (#316)
1 parent c06ba6c commit 118ed62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/amplify-codegen-e2e-tests/schemas/modelgen/model_gen_schema_with_aws_scalars.graphql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,24 @@ type User @model {
3131
type Post @model {
3232
title: String!
3333
content: String
34-
comments: [Comment] @connection(name: "PostComment")
34+
comments: [Comment] @hasMany
3535
}
3636

3737
type Comment @model {
3838
comment: String!
39-
post: Post @connection(name: "PostComment")
39+
post: Post @belongsTo
4040
}
4141

4242
# 1:1 Connection
4343

4444
type Person @model {
4545
id: ID!
4646
name: String!
47-
license: License @connection
47+
license: License @hasOne
4848
}
4949

5050
type License @model {
5151
id: ID!
5252
number: String!
53-
belongsTo: Person @connection
53+
belongsTo: Person @belongsTo
5454
}

0 commit comments

Comments
 (0)