Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Data model for the examples on
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!

This comment has been minimized.

Copy link

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.