Waiting for engine...
Skip to main content

listingEntryCategories

Returns a list of all the Categories for the specified Listing Entry IDs.

If an Empty List is provided, an exception is thrown.

If the request fails, an error object is returned that includes the "errorCode" fields with one of the values from the ListingEntryQueryError enum.

For example:


{
"errors": [
{
"message": "The Listing Entry ID cannot be empty. Specify a valid list of listing Entry Id.",
"extensions": {
"errorCode": "VALIDATION_ERROR"
}
}
]
}

Query Format:

query{
listingEntryCategories(listingEntryIds: [array]) {
listingEntryId
listingCategories {
id
name
}}}

Example Queries:

  1. A sample valid request with listingEntryId specified:
query {
listingEntryCategories(listingEntryIds: ["ede36e2f-bc41-42c2-9686-d827c36b1305",
"0d32d773-80e4-496f-985d-8e6b880be8f1"]) {
listingEntryId
listingCategories {
id
name
}}
}

  1. A sample valid request with none of the listingEntryId specified:
query {
listingEntryCategories(listingEntryIds: [""]) {
listingEntryId
listingCategories {
id
name
}}}

  1. A sample invalid request that has empty listingEntryId:
query {
listingEntryCategories(listingEntryIds: []) {
listingEntryId
listingCategories {
id
name
}}}

listingEntryCategories(
listingEntryIds: [String]
): [ListingEntryCategoryItem]

Arguments

listingEntryCategories.listingEntryIds ● [String] list scalar miscellaneous

Type

ListingEntryCategoryItem object platform

On this Page