소스 검색

Revert "query node - input schema multiple categories for videos and channels"

This reverts commit dc9af534587488576d6dc20dfccc1135688628bf.
ondratra 4 년 전
부모
커밋
0f1a118f2c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      query-node/schema.graphql

+ 4 - 4
query-node/schema.graphql

@@ -63,7 +63,7 @@ type ChannelCategory @entity {
   "The name of the category"
   name: String @fulltext(query: "channelCategoriesByName")
 
-  channels: [Channel!] @derivedFrom(field: "categories")
+  channels: [Channel!] @derivedFrom(field: "category")
 
   happenedIn: Block!
 }
@@ -208,7 +208,7 @@ type Channel @entity {
   # or a member. We are not handling events related to curator group so we will not set this field
   # owner: Member!
 
-  categories: [ChannelCategory!]
+  category: ChannelCategory
 
   "Reward account where revenue is sent if set."
   rewardAccount: String
@@ -246,7 +246,7 @@ type VideoCategory @entity {
   "The name of the category"
   name: String @fulltext(query: "videoCategoriesByName")
 
-  videos: [Video!] @derivedFrom(field: "categories")
+  videos: [Video!] @derivedFrom(field: "category")
 
   happenedIn: Block!
 }
@@ -259,7 +259,7 @@ type Video @entity {
   channel: Channel!
 
   "Reference to a video category"
-  categories: [VideoCategory!]
+  category: VideoCategory
 
   "The title of the video"
   title: String @fulltext(query: "search")