forked from realaravinth/libmedium
make certain fields non-nullable
I think it is safe to assume that these files will never receive a null value. However, we should collect a bunch of data and verify this assumption. But for now, this means less boilerplate code
This commit is contained in:
parent
adf85ea814
commit
a1395234e6
1 changed files with 13 additions and 13 deletions
|
@ -7,13 +7,13 @@ schema {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Paragraphs {
|
type Paragraphs {
|
||||||
text: String
|
text: String!
|
||||||
type: String
|
type: String!
|
||||||
href: String
|
href: String
|
||||||
layout: String
|
layout: String
|
||||||
iframe: IFrame
|
iframe: IFrame
|
||||||
metadata: MetaData
|
metadata: MetaData
|
||||||
markups: [MarkUp ]
|
markups: [MarkUp! ]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MarkUp {
|
type MarkUp {
|
||||||
|
@ -39,24 +39,24 @@ type MediaResource{
|
||||||
}
|
}
|
||||||
|
|
||||||
type MetaData {
|
type MetaData {
|
||||||
id: String
|
id: String!
|
||||||
originalWidth: Int
|
originalWidth: Int!
|
||||||
originalHeight: Int
|
originalHeight: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type BodyModel { paragraphs: [Paragraphs ] }
|
type BodyModel { paragraphs: [Paragraphs! ]! }
|
||||||
|
|
||||||
type Content { bodyModel: BodyModel }
|
type Content { bodyModel: BodyModel! }
|
||||||
|
|
||||||
type User { id: String name: String }
|
type User { id: String! name: String! }
|
||||||
|
|
||||||
type Post {
|
type Post {
|
||||||
id: ID!
|
id: ID!
|
||||||
title: String
|
title: String!
|
||||||
createdAt: Int
|
createdAt: Int!
|
||||||
content: Content
|
content: Content!
|
||||||
creator: User
|
creator: User!
|
||||||
}
|
}
|
||||||
|
|
||||||
type Data { post: Post }
|
type Data { post: Post }
|
||||||
|
|
Loading…
Reference in a new issue