listingCategoryCreate
Creates a new Listing category
The listingCategoryCreate mutation accepts the following input: categoryName icon
The categoryName field is required. If the categoryName field is not specified, an exception is thrown. The icon field is a required field. If the icon for category is not available, you can use the default category icon available here: https://drive.google.com/file/d/1-Zh9epp20fRDRgmPwp_DGR7SUFAIL4Of/view?usp=sharing
An example of the request is as follows:
mutation($iconFile: Upload!){
listingCategoryCreate(input: {
categoryName: "Finance"
icon: $iconFile
})
}
The category icon file used in the request must satisfy the following requirements:
- Less than or equal to 10 KB
- Must be an svg file type
The GraphQL request should be a multipart form request as specified in https://github.com/jaydenseric/graphql-multipart-request-spec The Altair GraphQL client supports file upload as per this specification. Refer to the following article for uploading the category icon file using Altair https://altair.sirmuel.design/docs/features/file-upload.html
listingCategoryCreate(
input: ListingCategoryInput!
): Boolean
Arguments
listingCategoryCreate.input ● ListingCategoryInput! non-null input platform
Type
Boolean scalar miscellaneous
The Boolean scalar type represents true or false.