type Query {
user(id: Int!): User
}
type User {
id: Int
name: String
email: String
}
query{
user(id: 1){
id
name
email
}
}
https://jsonplaceholder.typicode.com/users/{{.arguments.id}}
type Query {
user(id: Int!): User
}
type User {
id: Int
name: String
email: String
posts: [Post]
}
type Post {
id: Int
title: String
body: String
}
query{
user(id: 1){
id
name
email
posts{
id
title
body
}
}
}
https://jsonplaceholder.typicode.com/posts?userId={{.object.id}}
type Query {
user(id: Int!): User
}
type User {
id: Int
name: String
email: String
posts: [Post]
}
type Post {
id: Int
title: String
body: String
comments: [Comment]
}
type Comment {
id: Int
name: String
email: String
body: String
}
query{
user(id: 1){
id
name
email
posts{
id
title
body
comments{
id
name
email
body
}
}
}
}
https://jsonplaceholder.typicode.com/comments?postId={{.object.id}}