videos_query.graphql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. query GetVideosConnection($first: Int, $after: String, $_v0_where: VideoWhereInput, $_v0_orderBy: [VideoOrderByInput!]) {
  2. videosConnection(first: $first, after: $after, where: $_v0_where, orderBy: $_v0_orderBy) {
  3. edges {
  4. cursor
  5. node {
  6. ...VideoFields
  7. __typename
  8. }
  9. __typename
  10. }
  11. pageInfo {
  12. hasNextPage
  13. endCursor
  14. __typename
  15. }
  16. totalCount
  17. __typename
  18. }
  19. }
  20. fragment VideoFields on Video {
  21. id
  22. title
  23. description
  24. category {
  25. id
  26. name
  27. __typename
  28. }
  29. views
  30. duration
  31. createdAt
  32. isPublic
  33. isExplicit
  34. isFeatured
  35. hasMarketing
  36. isCensored
  37. language {
  38. iso
  39. __typename
  40. }
  41. publishedBeforeJoystream
  42. mediaMetadata {
  43. ...VideoMediaMetadataFields
  44. __typename
  45. }
  46. media {
  47. ...StorageDataObjectFields
  48. __typename
  49. }
  50. thumbnailPhoto {
  51. ...StorageDataObjectFields
  52. __typename
  53. }
  54. channel {
  55. ...BasicChannelFields
  56. __typename
  57. }
  58. license {
  59. ...LicenseFields
  60. __typename
  61. }
  62. __typename
  63. }
  64. fragment VideoMediaMetadataFields on VideoMediaMetadata {
  65. id
  66. pixelHeight
  67. pixelWidth
  68. __typename
  69. }
  70. fragment StorageDataObjectFields on StorageDataObject {
  71. id
  72. createdAt
  73. size
  74. isAccepted
  75. ipfsHash
  76. storageBag {
  77. id
  78. __typename
  79. }
  80. type {
  81. __typename
  82. }
  83. __typename
  84. }
  85. fragment BasicChannelFields on Channel {
  86. id
  87. title
  88. createdAt
  89. views
  90. follows
  91. avatarPhoto {
  92. ...StorageDataObjectFields
  93. __typename
  94. }
  95. ownerMember {
  96. controllerAccount
  97. }
  98. __typename
  99. }
  100. fragment LicenseFields on License {
  101. id
  102. code
  103. attribution
  104. customText
  105. __typename
  106. }