joar
11/02/2017, 10:51 PMYou can only create scalar fields and '<FieldName>' is not a scalar value. Did you intend to create a relation?
when I’m creating relations. Specifically it happens when I’m setting a relation like this:
type FirstType {
seconds: SecondType @relation(name: "TypeRelation")
}
type SecondType {
firsts: [FirstType!]! @relation(name: "TypeRelation")
}
agartha
11/02/2017, 10:58 PMjoar
11/02/2017, 11:59 PMjoar
11/02/2017, 11:59 PMseconds: [SecondType!]!
insteadagartha
11/03/2017, 12:01 AMagartha
11/03/2017, 12:01 AMjoar
11/03/2017, 12:08 AMjoar
11/03/2017, 12:08 AMtype Item @model {
size: ItemSize @relation(name: "SizesOnItem")
}
type ItemSize @model {
items: [Item!]! @relation(name: "SizesOnItem")
}
joar
11/03/2017, 12:08 AMagartha
11/03/2017, 12:08 AMjoar
11/03/2017, 12:10 AMsize
to size: [ItemSize!]!
I can deploy just fine. I have used this schema for half a year or so, however this env specifically was cloned from an older one and ejectedagartha
11/03/2017, 12:10 AMjoar
11/03/2017, 12:11 AMjoar
11/03/2017, 12:11 AMagartha
11/03/2017, 2:56 AM