Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL API for Labels #1342

Merged
merged 5 commits into from
Mar 15, 2024
Merged

GraphQL API for Labels #1342

merged 5 commits into from
Mar 15, 2024

Conversation

sophiedeziel
Copy link
Owner

@sophiedeziel sophiedeziel commented Mar 14, 2024

Related to #1119

Example queries:

query labels {
  labels {
    edges {
      node {
        id
        name
        color
        files {
          edges {
            node {
              id
            }
          }
        }
      }
    }
  }
}

mutation AttachLabel {
  labelFile(input: {fileId: "27", labelId: "1"}) {
    file {
      id
      labels {
        edges {
          node {
            id
          }
        }
      }
    }
  }
}

mutation CreateLabel {
  createLabel(input: {name: "PLA", color: "#111"}) {
    label {
      id
      name
      color
    }
  }
}

query file {
  file(id: "28") {
    labels {
      edges {
        node {
          id
          name
        }
      }
    }
  }
}

@sophiedeziel sophiedeziel enabled auto-merge (squash) March 15, 2024 00:12
@sophiedeziel sophiedeziel disabled auto-merge March 15, 2024 00:12
@sophiedeziel sophiedeziel merged commit 326548c into main Mar 15, 2024
7 checks passed
@sophiedeziel sophiedeziel deleted the labels-graphql branch March 15, 2024 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant