ian izaguirre
11/27/2018, 12:21 AMJohnC
11/27/2018, 12:35 AMdatamodel.prisma
and it will create it for you if we're talking Prisma! 🙂JohnC
11/27/2018, 12:35 AMauthor: User! @relation(name: "PostToUser", onDelete: SET_NULL)
ian izaguirre
11/27/2018, 7:12 PMian izaguirre
12/02/2018, 9:55 PMparent: String
.... does not work because in the datamodel.prisma I made that field parent: Collection! @relation(name: "CollectionItemBelongsIn", onDelete: SET_NULL)
ian izaguirre
12/02/2018, 9:56 PMschema.graphql
I need to reference that field somehow since its going to be passed in through the front end but the issue is that now through that relationship I cannot just add parent:String since its not set to be a string in datamodel.prisma now since we set it to a relation