Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
# Basic query query { books { title author year } } # Query with arguments query { book(id: "42") { title author { name bio } reviews { rating comment } } } # Named query with variables query GetBook($bookId: ID!, $reviewLimit: Int = 10) { book(id: $bookId) { title reviews(limit: $reviewLimit) { rating comment author { name } } } } # Variables (sent as JSON) { "bookId": "42", "reviewLimit": 5 }
Result
Open