Created
October 20, 2021 14:34
-
-
Save ermadmi78/3db86bcdf8b18da740b821184e9ace5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instantiate DSL context | |
val context = cinemaContextOf(createKtorAdapter()) | |
val result = context.mutation { | |
createFilm(title = "My Film") { | |
id() | |
title() | |
} | |
} | |
result.createFilm.also { film -> | |
println(film.title) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment