Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
# REST API: multiple endpoints, over/under-fetching # GET /users/1 # GET /users/1/posts # GET /users/1/followers # GraphQL: single endpoint, get exactly what you need # POST /graphql query GetUserWithPosts { user(id: "1") { id name email posts(last: 5) { title createdAt likes } followersCount } }
Result
Open