File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ mutation deleteReview(
101
101
}
102
102
103
103
# 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 ) {
105
105
user_upsert (
106
106
data : {
107
107
id_expr : " auth.uid"
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ query SearchMovieAnd(
195
195
196
196
# Get favorite movies by user ID
197
197
query GetUserFavoriteMovies @auth (level : USER ) {
198
- user (key : { id_expr : " auth.uid" } ) {
198
+ user (id_expr : " auth.uid" ) {
199
199
favorite_movies_on_user {
200
200
movie {
201
201
id
@@ -350,7 +350,7 @@ query searchMovieDescriptionUsingL2Similarity($query: String!)
350
350
compare_embed : { model : " textembedding-gecko@003" , text : $query }
351
351
method : L2
352
352
within : 2
353
- where : { description : { ne : " " } }
353
+ where : { isNull : false }
354
354
limit : 5
355
355
) {
356
356
id
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type Movie
21
21
type MovieMetadata
22
22
@table {
23
23
# @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
25
25
movie : Movie ! @ref
26
26
# movieId: UUID <- this is created by the above @ref
27
27
director : String
You can’t perform that action at this time.
0 commit comments