Hi all, I'm just getting started with Graphcool (a...
# prisma-whats-new
o
Hi all, I'm just getting started with Graphcool (and GraphQL for that matter), and wondering wether it's possible to accomplish the following: I have a
Like
model type that represents an instance of a User "liking" some content in my app. Given that the nodes that are "liked" can be of different Model types, is it possible to create a single
Like
model type and still use relations to reference nodes of the Like type? Or must I create a Like table with fields such as
likedNodeId
and use custom resolvers to retreive all the
Like
nodes for a given node?
m
Do you mean an Interface ?
o
I want `Like`s to be stored in the DB with `ID`s
I am mostly looking for suggestions on how to model this in a "Graphcool type way"