Skip to content

Commit dae8184

Browse files
committed
fix: auth params
1 parent 0039fc6 commit dae8184

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dataconnect/dataconnect/movie-connector/mutations.gql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mutation deleteReview(
101101
}
102102

103103
# Upsert (update or insert) a user based on their username
104-
mutation upsertUser($username: String!) @auth(level: PUBLIC) {
104+
mutation upsertUser($username: String!) @auth(level: USER) {
105105
user_upsert(
106106
data: {
107107
id_expr: "auth.uid"

dataconnect/dataconnect/movie-connector/queries.gql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ query SearchMovieAnd(
195195

196196
# Get favorite movies by user ID
197197
query GetUserFavoriteMovies @auth(level: USER) {
198-
user(key: {id_expr: "auth.uid"}) {
198+
user(id_expr: "auth.uid") {
199199
favorite_movies_on_user {
200200
movie {
201201
id
@@ -350,7 +350,7 @@ query searchMovieDescriptionUsingL2Similarity($query: String!)
350350
compare_embed: { model: "textembedding-gecko@003", text: $query }
351351
method: L2
352352
within: 2
353-
where: { description: { ne: "" } }
353+
where: { isNull: false }
354354
limit: 5
355355
) {
356356
id

dataconnect/dataconnect/schema/schema.gql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Movie
2121
type MovieMetadata
2222
@table {
2323
# @ref creates a field in the current table (MovieMetadata) that holds the primary key of the referenced type
24-
# In this case, @ref(fields: "id") is implied
24+
# In this case, @ref(fields: "movieId", references: "id") is implied
2525
movie: Movie! @ref
2626
# movieId: UUID <- this is created by the above @ref
2727
director: String

0 commit comments

Comments
 (0)