From 4f095e4542c170479d7555298ecd3da2d6b6763a Mon Sep 17 00:00:00 2001 From: rodolfoams Date: Thu, 1 Jun 2023 14:19:18 -0300 Subject: [PATCH] Add withOwnerId directive to searchOrderForm query (#648) [Jira Issue](https://vtex-dev.atlassian.net/browse/CHK-2179) #### What problem is this solving? The `searchOrderForm` query did not include the CheckoutOrderFormOwnership (lacking withOwnerId directive). #### How to test it? It is linked in `qastore` workspace `rodolfo`. #### Screenshots or example usage: Same as #633 . --- CHANGELOG.md | 3 +++ graphql/schema.graphql | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f94f0ec..95377934 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Use `withOwnerId` directive on `searchOrderForm` query. + ## [2.162.0] - 2023-05-23 ### Fixed diff --git a/graphql/schema.graphql b/graphql/schema.graphql index 21758f06..2d5b4b37 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -308,15 +308,17 @@ type Query { """ returns a certain checkout cart details """ - searchOrderForm(orderFormId: String!): OrderForm @cacheControl(scope: PRIVATE) + searchOrderForm(orderFormId: String!): OrderForm + @cacheControl(scope: PRIVATE) + @withOwnerId """ DEPRECATED """ - orders: [Order] @cacheControl(scope: PRIVATE) @withOrderFormId - @deprecated( - reason: "Use orders endpoint of vtex.orders-graphql instead" - ) + orders: [Order] + @cacheControl(scope: PRIVATE) + @withOrderFormId + @deprecated(reason: "Use orders endpoint of vtex.orders-graphql instead") """ Returns a specified user order @@ -614,7 +616,11 @@ type Mutation { reason: "Field is no longer needed. Checkout cookie is automatically taken into account now" ) items: [OrderFormItemInput] - ): OrderForm @withSegment @withOrderFormId @withOwnerId @cacheControl(scope: PRIVATE) + ): OrderForm + @withSegment + @withOrderFormId + @withOwnerId + @cacheControl(scope: PRIVATE) """ Used to update the CL entity on masterData.