Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Aug 23, 2021
1 parent 0b0d6a8 commit 9fa5e5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
11 changes: 5 additions & 6 deletions examples/blog/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,9 @@ input StringNullableFilter {
contains: String
startsWith: String
endsWith: String
mode: QueryMode
not: NestedStringNullableFilter
}

enum QueryMode {
default
insensitive
}

input NestedStringNullableFilter {
equals: String
in: [String!]
Expand Down Expand Up @@ -319,6 +313,11 @@ enum KeystoneAdminUIFieldMetaItemViewFieldMode {
hidden
}

enum QueryMode {
default
insensitive
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
17 changes: 6 additions & 11 deletions examples/blog/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
datasource postgresql {
datasource sqlite {
url = env("DATABASE_URL")
provider = "postgresql"
provider = "sqlite"
}

generator client {
Expand All @@ -9,13 +9,13 @@ generator client {
}

model Post {
id String @id @default(cuid())
id String @id @default(cuid())
title String?
status PostStatusType?
status String?
content String?
publishDate DateTime?
author Author? @relation("Post_author", fields: [authorId], references: [id])
authorId String? @map("author")
author Author? @relation("Post_author", fields: [authorId], references: [id])
authorId String? @map("author")
@@index([authorId])
}
Expand All @@ -25,9 +25,4 @@ model Author {
name String?
email String? @unique
posts Post[] @relation("Post_author")
}

enum PostStatusType {
draft
published
}

0 comments on commit 9fa5e5d

Please sign in to comment.