Magento 2 Free Gifts GraphQl Extension

1.0.0 2020-02-28 13:06 UTC

This package is auto-updated.

Last update: 2020-07-31 00:38:22 UTC


How to install

Run the following command in Magento 2 root folder:

composer require mageplaza/module-free-gifts-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

How to use

To start using Freegifts GraphQL in your Magento 2 store, you need to:

  • Use Magento 2.3.x. Return your site to developer mode

  • Install chrome extension (currently does not support other browsers)

  • Set GraphQL endpoint as http://<magento2-3-server>/graphql in url box, click Set endpoint. (e.g.

  • Perform a query in the left cell then click the Run button or Ctrl + Enter to see the result in the right cell

  • Currently, Mageplaza Free Gifts extension support the following queries and mutations:

    • Query mpFreeGiftsByProductSku: Help to get the free gift by product SKU

    • Query mpFreeGiftsByQuoteItem: Help to get the free gift by quote item Id

    • Mutation mpFreeGiftsAddByGiftId: Help to add free gift by gift Id

    • Mutations mpFreeGiftsDeleteByQuoteItem: Help to add free gift by quote item Id