Constant GRAPHQL_SEARCH_REPOSITORIES_QUERY
Source pub const GRAPHQL_SEARCH_REPOSITORIES_QUERY: &str = r#"
query($queryString: String!, $first: Int!, $after: String) {
search(query: $queryString, type: REPOSITORY, first: $first, after: $after) {
repositoryCount
pageInfo {
hasNextPage
endCursor
}
edges {
node {
... on Repository {
id
name
nameWithOwner
description
url
stargazerCount
forkCount
createdAt
updatedAt
pushedAt
primaryLanguage {
name
color
}
licenseInfo {
name
spdxId
}
repositoryTopics(first: 5) {
edges {
node {
topic {
name
}
}
}
}
}
}
}
}
}
"#;