text: import { gql } from "apollo-boost";
  
  export const ISSUES_QUERY = gql`
    query Issues($cursor: String, $filters: IssueFilter) {
      issues(first: 10, after: $cursor, filters: $filters) {
        edges {
          id
          createdAt
          updatedAt
          title
          creator {
            id
            name
          }
          status {
            id
            name
          }
          open
          assignedUsers {
            id
            name
          }
          tags {
            id
            name
            color
          }
          project {
            name
          }
        }
        pageInfo {
          endCursor
          hasNextPage
        }
      }
    }
  `;
  
  export const ISSUES_STATISTICS_QUERY = gql`
    query IssuesStatistics {
      issuesStatistics {
        openCount
        closedCount
      }
    }
  `;
  
  const ISSUE_CHANGES = `
    changes {
      id
      createdAt
      updatedAt
      creator {
        id
        name
      }
      type
      data {
        user {
          name
        }
        tag {
          name
        }
        project {
          name
        }
        status {
          name
        }
      }
    }
  `;
  
  const ISSUE_PROJECT = `
    project {
      id
      name
    }
  `;
  
  const ISSUE_TAGS = `
    tags {
      id
      name
      description
      color
    }
  `;
  
  const ISSUE_ASSIGNED_USERS = `
    assignedUsers {
      id
      name
    }
  `;
  
  const ISSUE_STATUS = `
    status {
      id
      name
      description
    }
  `;
  
  export const ISSUE_QUERY = gql`
    query IssuePageQuery($id: ID!) {
      issue(id: $id) {
        id
        title
        createdAt
        updatedAt
        creator {
          id
          name
        }
        open
        ${ISSUE_STATUS}
        ${ISSUE_ASSIGNED_USERS}
        ${ISSUE_TAGS}
        ${ISSUE_PROJECT}
        ${ISSUE_CHANGES}
        comments {
          id
          createdAt
          updatedAt
          content
          creator {
            id
            name
            role
          }
        }
      }
    }
  `;
  
  export const CREATE_ISSUE = gql`
    mutation CreateIssueMutation($title: String!, $content: String!) {
      createIssue(title: $title, content: $content) {
        id
      }
    }
  `;
  
  export const ISSUE_UPDATE = gql`
    mutation IssueUpdateMutation($id: ID!, $title: String) {
      updateIssue(id: $id, title: $title) {
        id
        title
        updatedAt
      }
    }
  `;
  
  export const ISSUE_UPDATE_STATUS = gql`
    mutation IssueUpdateStatusMutation($id: ID!, $statusId: ID!) {
      updateIssueStatus(id: $id, statusId: $statusId) {
        ${ISSUE_STATUS}
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_ADD_TAG = gql`
    mutation IssueAddTagMutation($id: ID!, $tagId: ID!) {
      addTag(id: $id, tagId: $tagId) {
        ${ISSUE_TAGS}
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_REMOVE_TAG = gql`
    mutation IssueRemoveTagMutation($id: ID!, $tagId: ID!) {
      removeTag(id: $id, tagId: $tagId) {
        ${ISSUE_TAGS}
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_ATTACH_TO_PROJECT = gql`
    mutation IssueAttachToProjectMutation($id: ID!, $projectId: ID!) {
      attachToProject(id: $id, projectId: $projectId) {
        ${ISSUE_PROJECT}
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_DETATCH_FROM_PROJECT = gql`
    mutation IssueDetatchFromProjectMutation($id: ID!, $projectId: ID!) {
      detatchFromProject(id: $id, projectId: $projectId) {
        ${ISSUE_PROJECT}
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_ASSIGNE_USER = gql`
    mutation IssueAssignUserMutation($id: ID!, $userId: ID!) {
      assignUser(id: $id, userId: $userId) {
        ${ISSUE_ASSIGNED_USERS}
        ${ISSUE_TAGS}
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_UNASSIGN_USER = gql`
    mutation IssueUnassignUserMutation($id: ID!, $userId: ID!) {
      unassignUser(id: $id, userId: $userId) {
        ${ISSUE_ASSIGNED_USERS}
        ${ISSUE_TAGS}
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_CLOSE = gql`
    mutation IssueCloseMutation($id: ID!) {
      closeIssue(id: $id) {
        id
        updatedAt
        open
        ${ISSUE_CHANGES}
      }
    }
  `;
  
  export const ISSUE_REOPEN = gql`
    mutation IssueReOpenMutation($id: ID!) {
      reopenIssue(id: $id) {
        id
        updatedAt
        open
        ${ISSUE_CHANGES}
      }
    }
  `;
  