<gh_stars>100-1000
"""
Queries of issue queries
"""


def gql_issues(fragment):
    """
    Return the GraphQL issues query
    """
    return f'''
query ($where: IssueWhere!, $first: PageSize!, $skip: Int!) {{
  data: issues(where: $where, first: $first, skip: $skip) {{
    {fragment}
  }}
}}
'''


GQL_ISSUES_COUNT = '''
query($where: IssueWhere!) {
  data: countIssues(where: $where)
}
'''

"""
Queries of issue queries
"""


def gql_issues(fragment):
    """
    Return the GraphQL issues query
    """
    return f'''
query ($where: IssueWhere!, $first: PageSize!, $skip: Int!) {{
  data: issues(where: $where, first: $first, skip: $skip) {{
    {fragment}
  }}
}}
'''


GQL_ISSUES_COUNT = '''
query($where: IssueWhere!) {
  data: countIssues(where: $where)
}
'''
Queries of issue queries Return the GraphQL issues query query ($where: IssueWhere!, $first: PageSize!, $skip: Int!) {{   data: issues(where: $where, first: $first, skip: $skip) {{     {fragment}   }} }} query($where: IssueWhere!) {   data: countIssues(where: $where) }