Only query for the attributes you need

This commit is contained in:
Edward Loveall 2021-08-29 13:02:56 -04:00
parent 6726dff526
commit 533c297019
No known key found for this signature in database
GPG Key ID: 789A4AE983AC8901
3 changed files with 4 additions and 28 deletions

View File

@ -10,7 +10,6 @@ describe PageConverter do
"text": "Title", "text": "Title",
"type": "H3", "type": "H3",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -19,7 +18,6 @@ describe PageConverter do
"text": "Subtitle", "text": "Subtitle",
"type": "H4", "type": "H4",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -40,7 +38,6 @@ describe PageConverter do
"text": "Not a title", "text": "Not a title",
"type": "P", "type": "P",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -60,7 +57,6 @@ describe PageConverter do
"text": "Title", "text": "Title",
"type": "H3", "type": "H3",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -69,7 +65,6 @@ describe PageConverter do
"text": "Subtitle", "text": "Subtitle",
"type": "H4", "type": "H4",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -78,7 +73,6 @@ describe PageConverter do
"text": "Content", "text": "Content",
"type": "P", "type": "P",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null

View File

@ -10,7 +10,6 @@ describe ParagraphConverter do
"text": "Title", "text": "Title",
"type": "H3", "type": "H3",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -42,7 +41,6 @@ describe ParagraphConverter do
"anchorType": null "anchorType": null
} }
], ],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -68,7 +66,6 @@ describe ParagraphConverter do
"text": "One", "text": "One",
"type": "ULI", "type": "ULI",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -77,7 +74,6 @@ describe ParagraphConverter do
"text": "Two", "text": "Two",
"type": "ULI", "type": "ULI",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -86,7 +82,6 @@ describe ParagraphConverter do
"text": "Not a list item", "text": "Not a list item",
"type": "P", "type": "P",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -113,7 +108,6 @@ describe ParagraphConverter do
"text": "One", "text": "One",
"type": "OLI", "type": "OLI",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -122,7 +116,6 @@ describe ParagraphConverter do
"text": "Two", "text": "Two",
"type": "OLI", "type": "OLI",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -131,7 +124,6 @@ describe ParagraphConverter do
"text": "Not a list item", "text": "Not a list item",
"type": "P", "type": "P",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -168,7 +160,6 @@ describe ParagraphConverter do
"anchorType": "LINK" "anchorType": "LINK"
} }
], ],
"href": null,
"iframe": null, "iframe": null,
"layout": "INSET_CENTER", "layout": "INSET_CENTER",
"metadata": { "metadata": {
@ -203,7 +194,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "H3", "type": "H3",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -212,7 +202,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "H4", "type": "H4",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -221,7 +210,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "P", "type": "P",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -230,7 +218,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "PRE", "type": "PRE",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -239,7 +226,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "BQ", "type": "BQ",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -248,7 +234,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "PQ", "type": "PQ",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -257,7 +242,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "ULI", "type": "ULI",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -266,7 +250,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "OLI", "type": "OLI",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": null "metadata": null
@ -275,7 +258,6 @@ describe ParagraphConverter do
"text": "text", "text": "text",
"type": "IMG", "type": "IMG",
"markups": [], "markups": [],
"href": null,
"iframe": null, "iframe": null,
"layout": null, "layout": null,
"metadata": { "metadata": {
@ -288,7 +270,6 @@ describe ParagraphConverter do
"text": "", "text": "",
"type": "IFRAME", "type": "IFRAME",
"markups": [], "markups": [],
"href": null,
"iframe": { "iframe": {
"mediaResource": { "mediaResource": {
"href": "https://example.com" "href": "https://example.com"

View File

@ -28,22 +28,23 @@ class MediumClient
paragraphs { paragraphs {
text text
type type
href
layout
markups { markups {
name title
type type
href href
userId userId
start start
end end
anchorType
} }
href
iframe { iframe {
mediaResource { mediaResource {
href href
} }
} }
metadata { metadata {
__typename
id id
originalWidth originalWidth
originalHeight originalHeight