Skip to content

Commit fdba3e0

Browse files
authored
Update mutations.gql
1 parent b0871ba commit fdba3e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dataconnect/dataconnect/movie-connector/mutations.gql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mutation AddReview(
4747
$rating: Int!
4848
$reviewText: String!
4949
) @auth(level: USER) {
50-
review_insert(
50+
review_upsert(
5151
data: {
5252
userId_expr: "auth.uid"
5353
movieId: $movieId
@@ -59,6 +59,7 @@ mutation AddReview(
5959
}
6060

6161
# Update a user's review for a movie
62+
# (This is just an example on how to do updates with compound keys; it's not used in the app.)
6263
mutation UpdateReview(
6364
$movieId: UUID!
6465
$rating: Int!

0 commit comments

Comments
 (0)