Slide 9
Slide 9 text
© 2024 estie, inc.
GraphQL Schema定義例
Cursor based Pagination
9
type Query {
buildings(
after: String,
before: String,
first: Int,
last: Int
): BuildingConnection
}
type BuildingConnection {
edges: [BuildingEdge!]!
pageInfo: PageInfo!
}
type BuildingEdge {
node: Building!
cursor: String!
}
type PageInfo {
startCursor: String!
endCursor: String!
hasNextPage: Boolean!
hasPreviousPage: Boolean!
}