We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06ba6c commit 118ed62Copy full SHA for 118ed62
packages/amplify-codegen-e2e-tests/schemas/modelgen/model_gen_schema_with_aws_scalars.graphql
@@ -31,24 +31,24 @@ type User @model {
31
type Post @model {
32
title: String!
33
content: String
34
- comments: [Comment] @connection(name: "PostComment")
+ comments: [Comment] @hasMany
35
}
36
37
type Comment @model {
38
comment: String!
39
- post: Post @connection(name: "PostComment")
+ post: Post @belongsTo
40
41
42
# 1:1 Connection
43
44
type Person @model {
45
id: ID!
46
name: String!
47
- license: License @connection
+ license: License @hasOne
48
49
50
type License @model {
51
52
number: String!
53
- belongsTo: Person @connection
+ belongsTo: Person @belongsTo
54
0 commit comments