schema.graphql 806 B

12345678910111213141516171819202122232425262728
  1. # -----------------------------------------------
  2. # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
  3. # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
  4. # -----------------------------------------------
  5. type EntityViewsInfo {
  6. id: ID!
  7. views: Int!
  8. }
  9. type Mutation {
  10. """Add a single view to the target video's count"""
  11. addVideoView(channelId: ID!, videoId: ID!): EntityViewsInfo!
  12. }
  13. type Query {
  14. """Get views counts for a list of channels"""
  15. batchedChannelsViews(channelIdList: [ID!]!): [EntityViewsInfo]!
  16. """Get views counts for a list of videos"""
  17. batchedVideoViews(videoIdList: [ID!]!): [EntityViewsInfo]!
  18. """Get views count for a single channel"""
  19. channelViews(channelId: ID!): EntityViewsInfo
  20. """Get views count for a single video"""
  21. videoViews(videoId: ID!): EntityViewsInfo
  22. }