Skip to content

Commit 67d54ae

Browse files
Merge pull request #7 from lepidus/main
Added missing "imprintId" field to Work query
2 parents 14887cf + 6cffdc3 commit 67d54ae

4 files changed

Lines changed: 16 additions & 10 deletions

File tree

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "library",
55
"require": {
66
"php": ">=7.4",
7-
"guzzlehttp/guzzle": "^7.0"
7+
"guzzlehttp/guzzle": "^6.5 | ^7.0"
88
},
99
"require-dev": {
1010
"phpunit/phpunit": "^9.6",
@@ -20,5 +20,9 @@
2020
"psr-4": {
2121
"ThothApi\\Tests\\": "tests/"
2222
}
23+
},
24+
"scripts" : {
25+
"test": "vendor/bin/phpunit --colors --testdox tests/",
26+
"lint": "vendor/bin/php-cs-fixer fix -v --diff --allow-risky=yes --config=.php-cs-fixer.php"
2327
}
2428
}

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GraphQL/Queries/WorkQuery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ protected function getFieldsFragment(): string
8383
return <<<GQL
8484
fragment workFields on Work {
8585
workId
86+
imprintId
8687
workType
8788
workStatus
8889
fullTitle

tests/GraphQL/Queries/WorkQueryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public function getFieldsFragment(): string
105105
return <<<GQL
106106
fragment workFields on Work {
107107
workId
108+
imprintId
108109
workType
109110
workStatus
110111
fullTitle

0 commit comments

Comments
 (0)