tim
10/23/2018, 1:07 AMtype Song @model {
id: ID! @isUnique
name: String!
}
type ConcertSong @model {
id: ID! @isUnique
song: Song @relation(name: "Songs")
concerts: [ConcertSong!]! @relation(name: "ConcertSongs")
}
type Concert @model {
id: ID! @isUnique
venue: Venue! @relation(name: "ConcertVenue")
start: DateTime!
setlist: [ConcertSong!]! @relation(name: "ConcertSongs")
opener: Artist
}
data entry will be adding a bunch of songs, then a bunch of concerts, then a bunch of ConcertSong's... is there a way to add ConcertSongs without having to find the id (something more human readable).
also, is there a better way to do a bunch of data entry like this than mutations? there will likely be hundreds of concerts and songs. Thanks!Harshit
10/23/2018, 1:21 AMtim
10/23/2018, 1:22 AMHarshit
10/23/2018, 1:22 AMconcerts: [ConcertSong!]!Is this right for the thing you are trying to achieve
tim
10/23/2018, 1:23 AMHarshit
10/23/2018, 1:23 AMtim
10/23/2018, 1:23 AMtim
10/23/2018, 1:24 AMHarshit
10/23/2018, 1:24 AMtim
10/23/2018, 1:25 AMHarshit
10/23/2018, 1:26 AMtim
10/23/2018, 1:26 AMHarshit
10/23/2018, 1:27 AMHarshit
10/23/2018, 1:27 AMHarshit
10/23/2018, 1:29 AMHarshit
10/23/2018, 1:31 AM