-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Implement unions in graphql
As a developer I want to be able to implement unions in the Magento graphql schema language following the specification https://spec.graphql.org/June2018/#sec-Unions
Acceptance criteria:
allow a syntax like the following:
union CompanyStructureEntity
@doc(description: "some kind of union")
@typeResolver(class: "Magento\\Module\\Resolver") =
CompanyTeam | Customer
{code}
Allow and resolve a query with proper types representing each type in union like the following:
{code:java}
{
company {
structure {
items {
id
parent_id
entity {
__typename
... on Customer {
firstname
lastname
}
... on CompanyTeam {
name
}
}
}
}
}
}
Metadata
Metadata
Assignees
Labels
Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch