GraphQL Schema
type User {
id: ID!
name: String!
posts: [Post!]!
}
type Query {
user(id: ID!): User
}클라이언트가 쿼리 작성의 기준. Introspection으로 탐색 가능.
GraphQL API의 타입·쿼리·뮤테이션을 정의하는 SDL.
type User {
id: ID!
name: String!
posts: [Post!]!
}
type Query {
user(id: ID!): User
}클라이언트가 쿼리 작성의 기준. Introspection으로 탐색 가능.