createCustomer mutation with custom attribute in magento2
I Have created a module to add custom attribute to createCustomer mutation. Vendor/Module/etc/extension_attributes.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Api/etc/extension_attributes.xsd”> <extension_attributes for=”MagentoCustomerApiDataCustomerInterface”> <attribute code=”custom_attr” type=”string”/> </extension_attributes> Vendor/Module/etc/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoCustomerApiDataCustomerInterface”> <arguments> <argument name=”extensionAttributesObjects” xsi:type=”array”> <item name=”custom_attr” xsi:type=”string”>VendorModuleApiDataCustomerExtensionInterface</item>… Read More »createCustomer mutation with custom attribute in magento2