From c622f1f50a68c04275aa474b42977b4aa08822e9 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Thu, 19 Aug 2021 18:00:01 +0200 Subject: [PATCH] feat(core): Allow OrderAddress custom fields to be modified Relates to #979 --- packages/core/src/api/config/graphql-custom-fields.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/core/src/api/config/graphql-custom-fields.ts b/packages/core/src/api/config/graphql-custom-fields.ts index ec771bd22e..df4f44c00b 100644 --- a/packages/core/src/api/config/graphql-custom-fields.ts +++ b/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 += `