-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for lists with no fields in GraphQL (#9254)
- Loading branch information
Showing
19 changed files
with
949 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@keystone-6/core': minor | ||
--- | ||
|
||
Add support for lists with no fields in GraphQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { config } from '@keystone-6/core' | ||
import { fixPrismaPath } from '../example-utils' | ||
import { lists } from './schema' | ||
import type { TypeInfo } from '.keystone/types' | ||
|
||
export default config<TypeInfo>({ | ||
db: { | ||
provider: 'sqlite', | ||
url: process.env.DATABASE_URL ?? 'file:./keystone-example.db', | ||
|
||
// WARNING: this is only needed for our monorepo examples, don't do this | ||
...fixPrismaPath, | ||
}, | ||
lists, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "@keystone-6/example-empty-lists", | ||
"version": "0.0.1", | ||
"private": true, | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "keystone dev", | ||
"start": "keystone start", | ||
"build": "keystone build", | ||
"postinstall": "keystone postinstall" | ||
}, | ||
"dependencies": { | ||
"@keystone-6/core": "workspace:^", | ||
"@prisma/client": "catalog:" | ||
}, | ||
"devDependencies": { | ||
"prisma": "catalog:", | ||
"typescript": "catalog:" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"template": "node", | ||
"container": { | ||
"startScript": "keystone dev", | ||
"node": "18" | ||
} | ||
} |
Oops, something went wrong.