PHP code example of mageworx / module-optiongraphql

1. Go to this page and download the library: Download mageworx/module-optiongraphql library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mageworx / module-optiongraphql example snippets

graphql 
{
  "data": {
    "dependencyState": {
      "hidden_options": [
        174,
        175,
        176,
        177
      ],
      "hidden_values": [
        1098,
        1099,
        1100,
        1101
      ],
      "preselected_values": "{\"73\":[2419]}"
    }
  }
}