12 lines
161 B
GraphQL
12 lines
161 B
GraphQL
type Post @model {
|
|
id: ID!
|
|
title: String!
|
|
slug: String! @unique
|
|
comments: [Comment]
|
|
}
|
|
|
|
type Comment @model {
|
|
id: ID!
|
|
message: String!
|
|
post: Post
|
|
}
|