Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
521 changes: 521 additions & 0 deletions graphql/codegen/SPEC.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ async function main() {
const signInResult = await db.mutation
.signIn(
{ input: { email: 'admin@gmail.com', password: 'password1111!@#$' } },
{ select: { apiToken: { select: { accessToken: true } } } }
{ select: { apiToken: { select: {
accessToken: true,
accessTokenExpiresAt: true,
id: true,
userId: true,
createdAt: true,
updatedAt: true,
}}}}
)
.execute();

Expand Down Expand Up @@ -67,7 +74,7 @@ async function main() {
const stringFilters = await db.user
.findMany({
select: { id: true, username: true },
first: 5,
first: 10,
where: { username: { includesInsensitive: 'seed' } },
})
.execute();
Expand Down
229 changes: 0 additions & 229 deletions graphql/codegen/examples/react-query-sdk.ts

This file was deleted.

4 changes: 3 additions & 1 deletion graphql/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"build:dev": "makage build --dev",
"dev": "ts-node ./src/index.ts",
"lint": "eslint . --fix",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"test": "jest --passWithNoTests",
"test:watch": "jest --watch",
"example:codegen:sdk": "tsx src/cli/index.ts generate --config examples/multi-target.config.ts",
Expand All @@ -58,7 +60,7 @@
"graphql": "15.10.1",
"inflekt": "^0.2.0",
"jiti": "^2.6.1",
"prettier": "^3.7.4"
"oxfmt": "^0.13.0"
},
"peerDependencies": {
"@tanstack/react-query": "^5.0.0",
Expand Down
Loading