I'd like to know if there is a way to join two rest API on the name attribute using graphql. These are the response that I have
// products API
[
{
id: "0001",
name: "a name",
color: "black",
size: "L"
},
{
id: "0002",
name: "an other name",
color: "red",
size: "M"
}
]
// price API
[
{
id: "xyz1",
name: "a name",
price: 10
},
{
id: "xyz2",
name: "an other name",
price: 20
}
]
and I want to use graphql to combine them, so that
// response from graphql
[
{
id: "0001",
name: "a name",
price: 10,
color: "black",
size: "L"
},
{
id: "0002",
name: "an other name",
price: 20,
color: "red",
size: "M"
}
]
Is graphql the right tool?