github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/graphql/artifacts.graphql (about)

     1  fragment Artifact on Artifact {
     2    id
     3    name
     4    blob
     5    type
     6    platform
     7    arch
     8    filesize
     9    sha
    10    readme
    11    insertedAt
    12    updatedAt
    13  }
    14  
    15  query ListArtifacts($id: ID!) {
    16    repository(id: $id) {
    17      artifacts { ...Artifact }
    18    }
    19  }
    20  
    21  mutation CreateArtifact($repoName: String!, $name: String!, $readme: String!, $artifactType: String!, $platform: String!, $blob: UploadOrUrl!, $arch: String) {
    22    createArtifact(repositoryName: $repoName, attributes: {
    23      name: $name,
    24      blob: $blob,
    25      readme: $readme,
    26      type: $artifactType,
    27      platform: $platform,
    28      arch: $arch
    29    }) {
    30      ...Artifact
    31    }
    32  }