title: How to get data from MySql relation table in Prisma
body: <p>In datamodel.graphql</p>
  
  <pre><code>type Ride {
   rideId: String
   productId: String
   passenger: Passenger
   origin: Origin
   destination: Destination
   dateTime: DateTime
   feedback: String
  }
  
  
  type Passenger {
   id: ID! @unique
   firstName: String
   lastName: String
  }
  
  type Destination {
   # The unique ID of the destination.
   id: ID! @unique
   latitude: Float
   longitude: Float
   address: String
  }
  
  type Origin {
   id: ID! @unique
   latitude: Float
   longitude: Float
   address: String
  }
  
  
  type Report {
  
   productId: String
   passenger: Passenger
   description: String
  }
  </code></pre>
  
  <p>I deployed this data model and generates a MySql Db, auto queries, mutations with this.  </p>
  
  <p>It creates a "Ride", "Passenger", "Report" and "Origin" table in MySql. But it didn't create any column for passenger, origin, destination in "Ride" table.</p>
  
  <p>It separates creates a relation table for this like _PassengerToRide, _OriginToRide, and _DestinationToRide.</p>
  
  <p>Lack of relation establishment in "Ride" table, I couldn't get the details from Passenger, Origin and Destination tables when I query "rides()". Is this the correct way to define the datamodel.graphql. (edited)</p>