Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit a7845f0

Browse files
dineshvbDinesh V Bkeharper
authored
Added the error coverage for category query (#8489)
* Added the error coverage for category query * made the suggested changes Co-authored-by: Dinesh V B <dbabu@ztech.io> Co-authored-by: Kevin Harper <keharper@users.noreply.github.com>
1 parent 24e61e0 commit a7845f0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/guides/v2.3/graphql/queries/category.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,10 @@ The query returns a `CategoryTree` object, which implements [`CategoryInterface`
212212
Attribute | Data type | Description
213213
--- | --- | ---
214214
`children` | `CategoryTree` | An array containing the next level of subcategories. By default, you can specify up to 10 levels of child categories
215+
216+
## Errors
217+
218+
Error | Description
219+
--- | ---
220+
`Category doesn't exist` | The specified category ID value does not exist.
221+
`Field "category" argument "id" requires type Int, found "XXX"` | The specified `id` argument value has the wrong type.

src/guides/v2.4/graphql/queries/category.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,10 @@ The query returns a `CategoryTree` object, which implements [`CategoryInterface`
210210
Attribute | Data type | Description
211211
--- | --- | ---
212212
`children` | `CategoryTree` | An array containing the next level of subcategories. By default, you can specify up to 10 levels of child categories
213+
214+
## Errors
215+
216+
Error | Description
217+
--- | ---
218+
`Category doesn't exist` | The specified category ID value does not exist.
219+
`Field "category" argument "id" requires type Int, found "XXX"` | The specified `id` argument value has the wrong type.

0 commit comments

Comments
 (0)