videos_query.graphql 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. query GetVideosConnection(
  2. $first: Int
  3. $after: String
  4. $_v0_where: VideoWhereInput
  5. $_v0_orderBy: [VideoOrderByInput!]
  6. ) {
  7. videosConnection(
  8. first: $first
  9. after: $after
  10. where: $_v0_where
  11. orderBy: $_v0_orderBy
  12. ) {
  13. edges {
  14. cursor
  15. node {
  16. ...VideoFields
  17. __typename
  18. }
  19. __typename
  20. }
  21. pageInfo {
  22. hasNextPage
  23. endCursor
  24. __typename
  25. }
  26. totalCount
  27. __typename
  28. }
  29. }
  30. fragment VideoFields on Video {
  31. id
  32. title
  33. description
  34. category {
  35. id
  36. name
  37. __typename
  38. }
  39. duration
  40. createdAt
  41. isPublic
  42. isExplicit
  43. isFeatured
  44. hasMarketing
  45. isCensored
  46. language {
  47. iso
  48. __typename
  49. }
  50. publishedBeforeJoystream
  51. mediaMetadata {
  52. ...VideoMediaMetadataFields
  53. __typename
  54. }
  55. mediaUrls
  56. mediaAvailability
  57. mediaDataObject {
  58. ...DataObjectFields
  59. __typename
  60. }
  61. thumbnailPhotoUrls
  62. thumbnailPhotoAvailability
  63. thumbnailPhotoDataObject {
  64. ...DataObjectFields
  65. __typename
  66. }
  67. channel {
  68. ...BasicChannelFields
  69. __typename
  70. }
  71. license {
  72. ...LicenseFields
  73. __typename
  74. }
  75. __typename
  76. }
  77. fragment LicenseFields on License {
  78. id
  79. code
  80. attribution
  81. customText
  82. __typename
  83. }
  84. fragment BasicChannelFields on Channel {
  85. id
  86. title
  87. ownerMember {
  88. rootAccount
  89. }
  90. createdAt
  91. createdById
  92. avatarPhotoUrls
  93. avatarPhotoAvailability
  94. avatarPhotoDataObject {
  95. ...DataObjectFields
  96. __typename
  97. }
  98. __typename
  99. }
  100. fragment DataObjectFields on DataObject {
  101. id
  102. createdAt
  103. size
  104. liaison {
  105. ...BasicWorkerFields
  106. __typename
  107. }
  108. liaisonJudgement
  109. ipfsContentId
  110. joystreamContentId
  111. __typename
  112. }
  113. fragment BasicWorkerFields on Worker {
  114. id
  115. workerId
  116. metadata
  117. isActive
  118. type
  119. __typename
  120. }
  121. fragment VideoMediaMetadataFields on VideoMediaMetadata {
  122. id
  123. pixelHeight
  124. pixelWidth
  125. __typename
  126. }