ql
1import {gql} from "@apollo/client";
2
3export const SEARCH_REPOS = gql`
4query searchRepositories($query: String!, $first: Int!, $after: String) {
5search(query: $query, type: REPOSITORY, first: $first, after: $after) {
6edges {
7node {
8... on Repository {
9name
10owner {
11login
12}
13stargazers {
14totalCount
15}
16updatedAt
17url
18}
19}
20}
21pageInfo {
22endCursor
23hasNextPage
24}
25}
26}
27`;