123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- extend type VideoHero {
- video: Video!
- }
- extend type FeaturedVideo {
- video: Video!
- }
- extend type CategoryFeaturedVideos {
- category: VideoCategory!
- }
- extend type Video {
- views: Int!
- }
- extend type Channel {
- views: Int!
- follows: Int!
- }
- type Query {
- # ===== Videos =====
- """
- Get list of 10 most watched videos in last week
- """
- top10VideosThisWeek(where: VideoWhereInput): [Video!]!
- """
- Get list of 10 most watched videos in last month
- """
- top10VideosThisMonth(where: VideoWhereInput): [Video!]!
- """
- Get connection of most viewed videos in a given period or of all time
- """
- mostViewedVideosConnection(
- """
- `periodDays` indicates from which time period the views should be taken from. Can be 7 or 30.
- If not provided, views from all time will be used.
- """
- periodDays: Int
- """
- `limit` indicates on how many videos the connection should be capped.
- """
- limit: Int!
- first: Int
- after: String
- last: Int
- before: String
- where: VideoWhereInput
- orderBy: [VideoOrderByInput!]
- ): VideoConnection!
- # ===== Channels =====
- """
- Get list of 15 most followed channels out of 100 newest channels in random order
- """
- discoverChannels(where: ChannelWhereInput): [Channel!]!
- """
- Get list of 15 most watched channels out of 100 newest channels in random order
- """
- promisingChannels(where: ChannelWhereInput): [Channel!]!
- """
- Get list of 15 most watched channels in random order
- """
- popularChannels(where: ChannelWhereInput): [Channel!]!
- """
- Get list of 10 most followed channels of all time
- """
- top10Channels(where: ChannelWhereInput): [Channel!]!
- """
- Get connection of most followed channels in a given period or of all time
- """
- mostFollowedChannelsConnection(
- """
- `periodDays` indicates from which time period the follows should be taken from. Can be 7 or 30.
- If not provided, follows from all time will be used.
- """
- periodDays: Int
- """
- `limit` indicates on how many channels the connection should be capped.
- """
- limit: Int!
- first: Int
- after: String
- last: Int
- before: String
- where: ChannelWhereInput
- orderBy: [ChannelOrderByInput!]
- ): ChannelConnection!
- """
- Get connection of most viewed channels in a given period or of all time
- """
- mostViewedChannelsConnection(
- """
- `periodDays` indicates from which time period the views should be taken from. Can be 7 or 30.
- If not provided, views from all time will be used.
- """
- periodDays: Int
- """
- `limit` indicates on how many channels the connection should be capped.
- """
- limit: Int!
- first: Int
- after: String
- last: Int
- before: String
- where: ChannelWhereInput
- orderBy: [ChannelOrderByInput!]
- ): ChannelConnection!
- }
|