Al
02/23/2019, 8:20 AMtype Model{
id: ID!
weight(unit: unit): Float #KG, LB
text(locale: locale): String # EN, US, etc
}
How can I have a type like that in Prisma endpoint directly? Is it possible?Harshit
02/23/2019, 8:54 AMtype Weight{
unit: String;
data: Float;
}
type Text{
locale: String
text: String
}
type Model{
id: ID! @unique
weight: Weight
text: Text
}
Al
02/23/2019, 9:25 AMHarshit
02/23/2019, 9:26 AMAl
02/23/2019, 10:06 AMHarshit
02/23/2019, 10:10 AMAl
02/23/2019, 10:12 AM