Melvin Pacheco
08/22/2020, 6:19 PMtype Video {
id: ID! @id
name: String! @unique
slug: String @unique
description: String!
image: String
url: String
}
type Playlist {
id: ID! @id
name: String!
slug: String
videos: [Video]
}
however, I would like to also mix in youtube videos, the data structure will be the same, since the youtube videos don’t exist in the db, I can’t do
connect: {
id: video.id,
},
my question is, do I have to create an item in the db for the youtube video? or can I just add an item to the playlist on the fly?Richard Ward
08/23/2020, 5:56 PMbeeman
08/25/2020, 2:47 PM