Created
December 14, 2021 12:21
-
-
Save ermadmi78/620b59d9bed7a84a528d1cc23c61a2ae to your computer and use it in GitHub Desktop.
Query preview
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
# GraphQL | |
query { | |
film(id: 0) { | |
id | |
title | |
actors { | |
id | |
firstName | |
lastName | |
} | |
} | |
} |
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
// Kotlin | |
val result = context.query { | |
film(id = 0L) { | |
id() | |
title() | |
actors { | |
id() | |
firstName() | |
lastName() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment