Hi guys! Have someone already use “Schema Stitchin...
# prisma-whats-new
j
Hi guys! Have someone already use “Schema Stitching” with Graphcool ? Example : I use the User model inside Graphcool, and a field
products: [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 :
Copy code
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 😉