Blog Pro | GraphQL methods

Blog Pro | GraphQL methods

Queries

  1. amBlogSetting
    description: get blog pro module settings

  2. amBlogPost (id: Int, urlKey: String)
    description: get post information about a post by ID

  3. amBlogPosts (type: AmBlogPageType, page: Int, entityId: Int)
    description: get an array of posts by page number

  4. amBlogPostsByIds (ids: [Int])
    description: get an array of posts by ID

  5. amBlogPostsByCategoryId (categoryId: [Int])
    description: get an array of posts by category ID

  6. amBlogPostsSearch (page: Int, query: String)
    description: get post search queries

  7. amBlogComments (postId: In, type: String)
    description: get blog comments by post ID

  8. amBlogCategory (id: Int)
    description: get information about blog category by ID

  9. amBlogCategories 
    description: get blog categories

  10. amBlogChildCategories (id: Int)
    description: get child categories by category ID

  11. amBlogTags (postId)
    description: get blog tags by post ID

  12. amBlogAuthor
    description: get information about author by ID

  13. amBlogAuthors
    description: get information about all blog authors

  14. amBlogCategoriesWidget (id: Int)
    description: get Amasty Blog Categories widget

  15. amBlogFeaturedPostsWidget (id: Int)
    description: get Amasty Blog Featured Posts widget

  16. amBlogRecentCommentsWidget (id: Int)
    description: get Amasty Blog Recent Comments widget

  17. amBlogRecentPostsWidget (id: Int)
    description: get Amasty Blog Recent Posts widget

  18. amBlogTagsWidget (id: Int)
    description: get Amasty Blog Tags widget

  19. amBlogRelatedPosts (productId: Int!)
    description: get information about related posts by product ID

  20. amBlogPostRelatedProducts (postId: Int!)
    description: get information about related products by post ID


Mutations

  1. AmBlogLeaveComment (input: AmBlogLeaveCommentInput)
    description: leave a comment to the post


  2. AmBlogLeaveVote (input: AmBlogLeaveVoteInput)
    description: leave a vote to the post
      • Related Articles

      • What Amasty extensions support GraphQL?

        Amasty has introduced additional GraphQL packages for extensions that are GraphQL compatible. These packages are listed in the 'suggest' section of the composer.json file. As a result, they are not automatically installed with the main module. To ...
      • Color Swatches Pro | GraphQL

        The Color Swatches Pro extension doesn't have its own GraphQL requests. Instead, it complements the default Magento type ConfigurableProduct by introducing supplementary details. When you send a request to Magento for configurable items, you can also ...
      • Blog Pro API

        Kindly note that the API functionality for Blog Pro is available as a part of an active product subscription or support subscription. GET /V1/amasty_blog/author/:authorId - Get one author GET /V1/amasty_blog/author/all - Get list with conditions ...
      • Multiple Coupons | GraphQL methods

        Kindly note that the GraphQL functionality for Multiple Coupons is available as a part of an active product subscription or support subscription. Query amGetCouponsByCartId description: get coupons by cart id Mutations amApplyCouponsToCart ...
      • Does the Blog Pro module support the Page Builder functionality?

        The Blog Pro module does not provide the Page Builder functionality out-of-the-box. However, there is a special submodule included in the Blog Pro package that makes the extension compatible with the Page Builder functionality and lets you use it ...