Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
zth committed Oct 30, 2023
1 parent 0cee437 commit e945a7f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dbTestProject/src/Main.res
Original file line number Diff line number Diff line change
@@ -11,6 +11,18 @@ let _ = movies->Array.forEach(movie => {
})
})

let moviesNested = await client->Movies.Nested.query

let _ = moviesNested->Array.forEach(movie => {
let _id = movie.id
let _title = movie.title
let _actors = movie.actors->Array.forEach(actor => {
let _id = actor.id
let _name = actor.name
let _numberOfPets = actor.numberOfPets
})
})

let singleMovie = await client->Movies.movieByTitle(~title="The Great Adventure")

let _ = switch singleMovie {

0 comments on commit e945a7f

Please sign in to comment.