Browse Source

Make all metadata optional

Theophile Sandoz 3 years ago
parent
commit
ae69f3464c
2 changed files with 5 additions and 5 deletions
  1. 3 3
      query-node/schemas/bounty.graphql
  2. 2 2
      query-node/schemas/bountyEvents.graphql

+ 3 - 3
query-node/schemas/bounty.graphql

@@ -51,10 +51,10 @@ type Bounty @entity {
   id: ID!
 
   "Bounty title"
-  title: String!
+  title: String
 
   "Bounty description"
-  description: String!
+  description: String
 
   "Bounty image uri"
   bannerImageUri: String
@@ -91,7 +91,7 @@ type Bounty @entity {
   totalFunding: BigInt!
 
   "Bounty discussion thread"
-  discussionThread: ForumThread!
+  discussionThread: ForumThread
 
   "The contributions (in fund) made to the bounty"
   contributions: [BountyContribution] @derivedFrom(field: "bounty")

+ 2 - 2
query-node/schemas/bountyEvents.graphql

@@ -286,10 +286,10 @@ type WorkSubmittedEvent implements Event @entity {
   entry: BountyEntry!
 
   "Title of the work"
-  title: String!
+  title: String
 
   "Description which contains the work itself as a URL, a BLOB, or just text"
-  description: String!
+  description: String
 }
 
 type OracleJudgmentSubmittedEvent implements Event @entity {