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 ebaaafb commit c81bb18Copy full SHA for c81bb18
src/integ_test_resources/android/amplify/integration/cdk/schemas/api_tests/events_api.graphql
@@ -8,13 +8,17 @@ type Event @model {
8
}
9
10
type Comment @model {
11
- id: ID!
12
- eventId: String!
13
- content: String!
14
- createdAt: AWSTimestamp!
+ eventId: ID!
+ commentId: String!
+ content: String!
+ createdAt: String!
15
event: Event @connection(name: "EventComments")
16
17
18
+type Mutation {
19
+ commentOnEvent(eventId: ID!, content: String!, createdAt: String!): Comment
20
+}
21
+
22
type Subscription {
23
subscribeToEventComments(eventId: String!): Comment @aws_subscribe(mutations: ["createComment"])
24
0 commit comments