{"data":{"id":"ACSD-51739","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where an error is returned when the structure_id is requested in a CompanyTeam GraphQL request.","categories":["B2B","GraphQL"],"components":["magento/module-company-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-34/acsd-51739-error-on-requesting-structure-id-in-company-team-graphql-request","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-34/acsd-51739-error-on-requesting-structure-id-in-company-team-graphql-request.md","blobSha":"8a9c331d05dcfb63a0b0b4eca5fb008fe56d1252","description":"An error is returned when the structure_id is requested in a CompanyTeam GraphQL request.","stepsToReproduce":"1. Go to Stores > Configuration > General > B2B Features, and set Enable Company to Yes. 1. Create a company along with a company admin user. 1. Create a new customer (customer1), and assign the company (created above) to this customer. 1. On the frontend, log in as the company admin user. 1. Create a company team, and assign customer1 to the team using drag and drop. 1. Run the following company GraphQl query, which includes CompanyTeam with structure_id: query{ company { id name structure { items { id parent_id entity { __typename ... on Customer { firstname lastname email structure_id } ... on CompanyTeam { id name structure_id } } } } } } 1. Check the GraphQL response.","introducedInQpt":"1.1.34","createdFor":["2.4.6"],"documentedRange":"2.4.6 - 2.4.7","scheduledFixRelease":null},"files":[{"package":"magento/magento2-b2b-base","constraint":">=1.3.5 <1.4.3","path":"patches/commerce/ACSD-51739_1.3.5.patch","blobSha":"b397e67bed7dad4b4978fa1cad4b9c9bb46393a4","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-51739_1.3.5.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-company-graph-ql/Model/Company/Structure.php","change":"modified","package":"magento/module-company-graph-ql"}],"packages":["magento/module-company-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":{"and":[{"type":"log","path":"var/log/exception.log","match":"Cannot return null for non-nullable field \"CompanyTeam.structure_id\""}]},"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-51739 details"}