schema.graphql 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -----------------------------------------------
  2. # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
  3. # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
  4. # -----------------------------------------------
  5. type ChannelFollowsInfo {
  6. follows: Int!
  7. id: ID!
  8. }
  9. type EntityViewsInfo {
  10. id: ID!
  11. views: Int!
  12. }
  13. type Mutation {
  14. """Add a single view to the target video's count"""
  15. addVideoView(channelId: ID!, videoId: ID!): EntityViewsInfo!
  16. """Add a single follow to the target channel"""
  17. followChannel(channelId: ID!): ChannelFollowsInfo!
  18. """Remove a single follow from the target channel"""
  19. unfollowChannel(channelId: ID!): ChannelFollowsInfo!
  20. }
  21. type Query {
  22. """Get follows counts for a list of channels"""
  23. batchedChannelFollows(channelIdList: [ID!]!): [ChannelFollowsInfo]!
  24. """Get views counts for a list of channels"""
  25. batchedChannelsViews(channelIdList: [ID!]!): [EntityViewsInfo]!
  26. """Get views counts for a list of videos"""
  27. batchedVideoViews(videoIdList: [ID!]!): [EntityViewsInfo]!
  28. """Get follows count for a single channel"""
  29. channelFollows(channelId: ID!): ChannelFollowsInfo
  30. """Get views count for a single channel"""
  31. channelViews(channelId: ID!): EntityViewsInfo
  32. """Get views count for a single video"""
  33. videoViews(videoId: ID!): EntityViewsInfo
  34. }