playerx
08/22/2018, 11:06 AMtype MusicChannel {
id: ID! @unique
name: String! @unique
logoUrl: String!
isFeatured: Boolean!
status: MusicChannelStatus!
activeSource: MusicChannelSource @relation(name: "MusicChannelActiveSource")
sources: [MusicChannelSource!]! @relation(name: "MusicChannelSources")
}
enum MusicChannelStatus {
ACTIVE
DISABLED
}
type MusicChannelSource {
streamUrl: String!
isOffline: Boolean!
channel: MusicChannel! @relation(name: "MusicChannelActiveSource")
songs: [Song!]!
ignoreTitles: [String!]!
}
and I found the issue 🙂 I didn’t set id field for MusicChannelSource because it was generated automatically, but it caused this api generation issue for me 🙂
with
type MusicChannelSource {
id: ID! @unique
streamUrl: String!
isOffline: Boolean!
channel: MusicChannel! @relation(name: "MusicChannelActiveSource")
songs: [Song!]!
ignoreTitles: [String!]!
}
everything works ok
thanks @catalinmiron for your time one more time