Skip to content

Commit c81bb18

Browse files
committed
Tweak to the events API schema
1 parent ebaaafb commit c81bb18

File tree

1 file changed

+8
-4
lines changed
  • src/integ_test_resources/android/amplify/integration/cdk/schemas/api_tests

1 file changed

+8
-4
lines changed

src/integ_test_resources/android/amplify/integration/cdk/schemas/api_tests/events_api.graphql

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ type Event @model {
88
}
99

1010
type Comment @model {
11-
id: ID!
12-
eventId: String!
13-
content: String!
14-
createdAt: AWSTimestamp!
11+
eventId: ID!
12+
commentId: String!
13+
content: String!
14+
createdAt: String!
1515
event: Event @connection(name: "EventComments")
1616
}
1717

18+
type Mutation {
19+
commentOnEvent(eventId: ID!, content: String!, createdAt: String!): Comment
20+
}
21+
1822
type Subscription {
1923
subscribeToEventComments(eventId: String!): Comment @aws_subscribe(mutations: ["createComment"])
2024
}

0 commit comments

Comments
 (0)