summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/snippets/fragments/snippetBase.fragment.graphql
blob: e7765dfd8ba5e7840e0748a64aa64b54abbceb27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#import '~/graphql_shared/fragments/blobviewer.fragment.graphql'

fragment SnippetBase on Snippet {
  id
  title
  description
  descriptionHtml
  createdAt
  updatedAt
  visibilityLevel
  webUrl
  httpUrlToRepo
  sshUrlToRepo
  blob {
    binary
    name
    path
    rawPath
    size
    externalStorage
    renderedAsText
    simpleViewer {
      ...BlobViewer
    }
    richViewer {
      ...BlobViewer
    }
  }
  userPermissions {
    adminSnippet
    updateSnippet
  }
}