johannpinson
01/11/2018, 4:48 PMproducts: [Product!]
, which may have ID of a Product model.
But the Product model is outside of Graphcool, available from another server/api.
The Product model have classic fields (id, name, price, etc.).
I already test to link the 2 “api” with a custom function with Graphcool, but I would like to facilitate it to allow to have directly this type of query :
query user($userId: ID) {
User(id: $userId) {
email
...
products: [
{
"id": "abc",
"name": "my awesome product",
...
}
]
}
}
And so not create custom query/mutation, just the resolvers to link “ID” between the model/api
Thanks all for you help 😉