matic
10/11/2017, 5:26 AMtaikn
10/11/2017, 5:49 AMmatic
10/11/2017, 7:50 AMtaikn
10/11/2017, 7:54 AMtype File {
contentType: String!
createdAt: DateTime!
id: ID! @isUnique
name: String!
secret: String! @isUnique
size: Int!
updatedAt: DateTime!
url: String! @isUnique
}
matic
10/11/2017, 8:01 AMnilan
10/11/2017, 10:38 AM@model
in the File type?matic
10/11/2017, 10:48 AM@unique ID
field should have @model
in order to be automatically added (that’s the way I interpreted it), I added it to File
type, which resulted in not working File upload API.
Maybe it would be helpful to note this in Current limitations
section, next to the part about unsupported required types.taikn
10/11/2017, 10:49 AMNode
interface here: https://graphcool.slack.com/archives/C0MQJ62NL/p1507186528000130?thread_ts=1507098030.000052&cid=C0MQJ62NL
and @model
seems to be the way of defining types