Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ NEW: feature schema * ✏️ DOC: changeset * 👌 FIX: lint * 🚧 FIX: prettier * 🚧 FIX: prettier
- Loading branch information
Showing
12 changed files
with
97 additions
and
40 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 @@ | ||
--- | ||
'@kitql/all-in': patch | ||
--- | ||
|
||
add schema option to the handler if you don't want to work with modules |
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ README.md | |
|
||
$houdini | ||
$kitql | ||
packages/all-in/src/lib/modules/_enums/**/* |
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 @@ | ||
datasource db { | ||
provider = "postgresql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
model test { | ||
id String @id @default(cuid()) | ||
name String | ||
my_demo my_demo_enum | ||
} | ||
|
||
enum my_demo_enum { | ||
ONE | ||
TWO | ||
FOUR | ||
} |
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
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,8 @@ | ||
import { createModule } from 'graphql-modules' | ||
|
||
import { typeDefs } from './$kitql/typedefs' | ||
|
||
export const _enumsModule = createModule({ | ||
id: 'enums-module', | ||
typeDefs | ||
}) |
5 changes: 5 additions & 0 deletions
5
packages/all-in/src/lib/modules/_enums/typedefs/ENUM.MyDemoEnum.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
enum MyDemoEnum { | ||
ONE | ||
TWO | ||
FOUR | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/all-in/src/lib/modules/_enums/ui/lists/MyDemoList.ts
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 @@ | ||
import { type MyDemoEnum } from '$graphql/$kitql/graphqlTypes' | ||
|
||
export const MyDemoList: Record<MyDemoEnum, string> = { | ||
ONE: 'One', | ||
TWO: 'Two', | ||
FOUR: 'Four', | ||
} |
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
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
a62009a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kitql – ./
kitql.vercel.app
kitql-git-main-jycouet.vercel.app
kitql-jycouet.vercel.app
www.kitql.dev
kitql.dev