Hi all! The use of `interface`s and `union type`s ...
# prisma-whats-new
w
Hi all! The use of `interface`s and `union type`s is at the moment not allowed in Graph.cool. But if I have, for example,
type Dress
,
type Shoes
,
type Suit
,
type TShirt
, how can I put them into the list of field
products
in the
type Cart
to reference all products added to the shopping cart? With `union type`s or `interface`s I can unite all my product types under the
type Product
and then put them all into the list in
products: [Product!]!
field of the
type Cart
. What is the best or recommended practice to do it without `interface`s and `union type`s?
p
@welf hey, did you figure this out or get a reply?