graphql-megaera
v0.0.0
Published
GraphQL TypeScript Generator
Downloads
4
Readme
GraphQL Megaera
query IssuesQuery($username: String!) {
repository(owner: "webpod", name: "graphql-megaera") {
issues(first: 100, filterBy: { createdBy: $username }) {
totalCount
nodes {
createdAt
closedAt
closed
author {
login
}
number
title
labels(first: 10) {
totalCount
nodes {
name
}
}
body
comments(first: 10) {
totalCount
nodes {
body
}
}
repository {
owner {
login
}
name
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
rateLimit {
limit
cost
remaining
resetAt
}
}
type IssuesQuery = (vars: { username: string }) => {
repository: {
issues: {
totalCount: number
nodes: Array<{
createdAt: string
closedAt: string | null
closed: boolean
author: {
login: string
} | null
number: number
title: string
labels: {
totalCount: number
nodes: Array<{
name: string
}> | null
} | null
body: string
comments: {
totalCount: number
nodes: Array<{
body: string
}> | null
}
repository: {
owner: {
login: string
}
name: string
}
}> | null
pageInfo: {
hasNextPage: boolean
endCursor: string | null
}
}
} | null
rateLimit: {
limit: number
cost: number
remaining: number
resetAt: string
} | null
} | null