Hi! What kind of relation is between Aircraft and Astronaugth? 1-to many or many to many?
n
Nicholas Lawrence
04/25/2019, 11:44 AM
Hey @Andrei Bacescu! I actually messed up my example a bit, the Aircraft type would only have 1 flownBy connection, but it could be either Pilot or Astronaught. Does that make sense?
a
Andrei Bacescu
04/25/2019, 11:49 AM
I don't know, it is first time when I see this kind of connection.
n
Nicholas Lawrence
04/25/2019, 11:55 AM
Basically I just want to be able to allocate different types to the flownBy property, but I guess that pretty much defeats the purpose of having a type system! And I can't picture how it would be possible to construct a query without knowing what specific type you're querying for, so it probably isn't possible!
Nicholas Lawrence
04/25/2019, 12:54 PM
I think what I need is Union Types and Interfaces! But those aren't supported by Prisma's datamodelling.... yet!