wesbos
08/22/2018, 6:02 PMlawjolla
08/22/2018, 6:05 PMwesbos
08/22/2018, 6:06 PMtype OrderItem {
id: ID! @unique
title: String!
description: String!
image: String!
largeImage: String!
price: Int!
quantity: Int! @default(value: 1)
user: User
}wesbos
08/22/2018, 6:06 PMwesbos
08/22/2018, 6:06 PMtype OrderItem {
id: ID! @unique
}lawjolla
08/22/2018, 6:07 PMOrderItem?
Can you deploy anything? e.g.
type User {
...
dummy: String
}wesbos
08/22/2018, 6:08 PMwesbos
08/22/2018, 6:08 PMlawjolla
08/22/2018, 6:08 PMwesbos
08/22/2018, 6:08 PMwesbos
08/22/2018, 6:09 PMlawjolla
08/22/2018, 6:10 PMwesbos
08/22/2018, 6:14 PMlawjolla
08/22/2018, 6:15 PMwesbos
08/22/2018, 6:35 PMlawjolla
08/22/2018, 6:40 PMwesbos
08/22/2018, 7:15 PMcatalinmiron
08/22/2018, 7:17 PM1 as "1"catalinmiron
08/22/2018, 7:17 PMquantity: Int! @default(value: "1")wesbos
08/22/2018, 7:17 PMcatalinmiron
08/22/2018, 7:18 PMcatalinmiron
08/22/2018, 7:19 PMNotice that you need to always provide the value in double-quotes, even for non-string types such as Boolean or Int.catalinmiron
08/22/2018, 7:19 PMwesbos
08/22/2018, 7:19 PMcatalinmiron
08/22/2018, 7:20 PMwesbos
08/22/2018, 7:21 PMnilan
08/23/2018, 7:52 AM