Browse Source

feat(core): Allow OrderAddress custom fields to be modified

Relates to #979
Michael Bromley 4 years ago
parent
commit
c622f1f50a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      packages/core/src/api/config/graphql-custom-fields.ts

+ 7 - 0
packages/core/src/api/config/graphql-custom-fields.ts

@@ -198,6 +198,13 @@ export function addGraphQLCustomFields(
                 }
             `;
         }
+        if (schema.getType('UpdateOrderAddressInput')) {
+            customFieldTypeDefs += `
+                extend input UpdateOrderAddressInput {
+                    customFields: UpdateAddressCustomFieldsInput
+                }
+            `;
+        }
     } else {
         if (schema.getType('OrderAddress')) {
             customFieldTypeDefs += `