Skip to content

Commit

Permalink
refactor: update e2e test schema
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Jul 27, 2021
1 parent 5beaf12 commit 380d85b
Showing 1 changed file with 37 additions and 17 deletions.
54 changes: 37 additions & 17 deletions e2e-tests/contentful/schema.gql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Type definitions saved at 2021-06-10T16:02:04.333Z ###
### Type definitions saved at 2021-07-27T16:05:23.858Z ###

type File implements Node @dontInfer {
sourceInstanceName: String!
Expand Down Expand Up @@ -125,7 +125,7 @@ type MarkdownWordCount {
words: Int
}

type MarkdownRemark implements Node @childOf(mimeTypes: ["text/markdown", "text/x-markdown"], types: ["ContentfulText"]) @dontInfer {
type MarkdownRemark implements Node @childOf(mimeTypes: ["text/markdown", "text/x-markdown"], types: ["ContentfulText"]) @derivedTypes @dontInfer {
frontmatter: MarkdownRemarkFrontmatter
excerpt: String
rawMarkdownBody: String
Expand All @@ -137,7 +137,7 @@ type MarkdownRemarkFrontmatter {

interface ContentfulReference implements Node {
id: ID!
sys: ContentfulSys
sys: ContentfulSys!
}

type ContentfulSys {
Expand All @@ -158,13 +158,23 @@ type ContentfulContentType implements Node @dontInfer {
description: String!
}

interface ContentfulEntry implements Node {
interface ContentfulEntry implements ContentfulReference & Node {
id: ID!
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
}

type ContentfulMetadata @dontInfer {
tags: [ContentfulTag]! @link(by: "id", from: "tags___NODE")
}

type ContentfulTag implements Node @dontInfer {
name: String!
contentful_id: String!
}

type ContentfulAsset implements ContentfulReference & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
title: String
description: String
contentType: String
Expand Down Expand Up @@ -206,7 +216,8 @@ type ContentfulText implements Node @dontInfer {
}

type ContentfulContentTypeNumber implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
integer: Int
integerLocalized: Int
Expand All @@ -215,7 +226,8 @@ type ContentfulContentTypeNumber implements ContentfulReference & ContentfulEntr
}

type ContentfulContentTypeText implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
short: String
shortLocalized: String
Expand All @@ -227,7 +239,8 @@ type ContentfulContentTypeText implements ContentfulReference & ContentfulEntry
}

type ContentfulContentTypeMediaReference implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
one: ContentfulAsset @link(by: "id", from: "one___NODE")
oneLocalized: ContentfulAsset @link(by: "id", from: "oneLocalized___NODE")
Expand All @@ -236,14 +249,16 @@ type ContentfulContentTypeMediaReference implements ContentfulReference & Conten
}

type ContentfulContentTypeBoolean implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
boolean: Boolean
booleanLocalized: Boolean
}

type ContentfulContentTypeDate implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
date: Date @dateformat
dateTime: Date @dateformat
Expand All @@ -252,29 +267,33 @@ type ContentfulContentTypeDate implements ContentfulReference & ContentfulEntry
}

type ContentfulContentTypeLocation implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
location: ContentfulLocation
locationLocalized: ContentfulLocation
}

type ContentfulContentTypeJson implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
json: JSON
jsonLocalized: JSON
}

type ContentfulContentTypeRichText implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
richText: ContentfulRichText
richTextLocalized: ContentfulRichText
richTextValidated: ContentfulRichText
}

type ContentfulContentTypeContentReference implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
one: ContentfulEntry @link(by: "id", from: "one___NODE")
oneLocalized: ContentfulEntry @link(by: "id", from: "oneLocalized___NODE")
Expand All @@ -283,7 +302,8 @@ type ContentfulContentTypeContentReference implements ContentfulReference & Cont
}

type ContentfulContentTypeValidatedContentReference implements ContentfulReference & ContentfulEntry & Node @dontInfer {
sys: ContentfulSys
sys: ContentfulSys!
metadata: ContentfulMetadata!
title: String
oneItemSingleType: ContentfulEntry @link(by: "id", from: "oneItemSingleType___NODE")
oneItemManyTypes: ContentfulEntry @link(by: "id", from: "oneItemManyTypes___NODE")
Expand All @@ -293,7 +313,7 @@ type ContentfulContentTypeValidatedContentReference implements ContentfulReferen
multipleItemsAllTypes: [ContentfulEntry] @link(by: "id", from: "multipleItemsAllTypes___NODE")
}

type ContentfulContentTypeContentType implements Node @dontInfer {
type ContentfulContentTypeContentType implements Node @derivedTypes @dontInfer {
name: String
displayField: String
description: String
Expand Down

0 comments on commit 380d85b

Please sign in to comment.