forked from prisma/prisma1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.graphql
More file actions
27 lines (22 loc) · 697 Bytes
/
Copy pathtypes.graphql
File metadata and controls
27 lines (22 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# The following types define the data model of the example app
# based on which the GraphQL API is generated
# All types need to have the three fields id, updatedAt and createdAt like this:
type User @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
}
# Graphcool has one special type, the File type:
# Uncommenting this type will automatically enable the File API
# Read more here:
# https://docs-next.graph.cool/reference/api/file-management-eer4wiang0
# type File @model {
# contentType: String!
# createdAt: DateTime!
# id: ID! @isUnique
# name: String!
# secret: String! @isUnique
# size: Int!
# updatedAt: DateTime!
# url: String! @isUnique
# }