Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Data model for the examples on prisma.io/features/graphql-api
type User {
id: ID! @unique
name: String!
email: String! @unique
isAdmin: Boolean @default(value: "false")
posts: [Post!]!
}
type Post {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
title: String!
author: User!
}
@OGHARRY

This comment has been minimized.

Copy link

OGHARRY commented Jul 27, 2018

Putting in a response would also be a good idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.