Skip to content

Commit 37c22ea

Browse files
committed
fix: mark queries/mutations that are not called
1 parent 69ec7cc commit 37c22ea

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dataconnect/dataconnect/movie-connector/mutations.gql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ mutation CreateMovie(
2222
}
2323

2424
# Update movie information based on the provided ID
25+
# For example purposes only, not called in quickstart
2526
mutation UpdateMovie(
2627
$id: UUID!
2728
$title: String
@@ -47,11 +48,13 @@ mutation UpdateMovie(
4748
}
4849

4950
# Delete a movie by its ID
51+
# For example purposes only, not called in quickstart
5052
mutation DeleteMovie($id: UUID!) @auth(level: USER_EMAIL_VERIFIED) {
5153
movie_delete(id: $id)
5254
}
5355

5456
# Delete movies with a rating lower than the specified minimum rating
57+
# For example purposes only, not called in quickstart
5558
mutation DeleteUnpopularMovies($minRating: Float!) @auth(level: USER_EMAIL_VERIFIED) {
5659
movie_deleteMany(where: { rating: { le: $minRating } })
5760
}

dataconnect/dataconnect/movie-connector/queries.gql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ query GetActorById($id: UUID!) @auth(level: PUBLIC) {
107107
}
108108

109109
# List movies by partial title match
110+
# For example purposes only, not called in quickstart
110111
query ListMoviesByPartialTitle($input: String!) @auth(level: PUBLIC) {
111112
movies(where: { title: { contains: $input } }) {
112113
id
@@ -118,6 +119,7 @@ query ListMoviesByPartialTitle($input: String!) @auth(level: PUBLIC) {
118119
}
119120

120121
# List movies by tag
122+
# For example purposes only, not called in quickstart
121123
query ListMoviesByTag($tag: String!) @auth(level: PUBLIC) {
122124
movies(where: { tags: { includes: $tag } }) {
123125
id
@@ -129,6 +131,7 @@ query ListMoviesByTag($tag: String!) @auth(level: PUBLIC) {
129131
}
130132

131133
# List movies by release year range
134+
# For example purposes only, not called in quickstart
132135
query MoviesByReleaseYear($min: Int, $max: Int) @auth(level: PUBLIC) {
133136
movies(
134137
where: { releaseYear: { le: $max, ge: $min } }
@@ -142,6 +145,7 @@ query MoviesByReleaseYear($min: Int, $max: Int) @auth(level: PUBLIC) {
142145
}
143146

144147
# List movies by rating and genre with OR filters
148+
# For example purposes only, not called in quickstart
145149
query SearchMovieOr(
146150
$minRating: Float
147151
$maxRating: Float
@@ -168,6 +172,7 @@ query SearchMovieOr(
168172
}
169173

170174
# List movies by rating and genre with AND filters
175+
# For example purposes only, not called in quickstart
171176
query SearchMovieAnd(
172177
$minRating: Float
173178
$maxRating: Float
@@ -194,6 +199,7 @@ query SearchMovieAnd(
194199
}
195200

196201
# Get favorite movies by user ID
202+
# For example purposes only, not called in quickstart
197203
query GetUserFavoriteMovies @auth(level: USER) {
198204
user(id_expr: "auth.uid") {
199205
favorite_movies_on_user {
@@ -211,6 +217,7 @@ query GetUserFavoriteMovies @auth(level: USER) {
211217
}
212218

213219
# Get favorite actors by user ID
220+
# For example purposes only, not called in quickstart
214221
query GetFavoriteActors @auth(level: USER) {
215222
user(key: {id_expr: "auth.uid"}) {
216223
favorite_actors_on_user {

0 commit comments

Comments
 (0)