This commit is contained in:
2025-02-18 09:19:28 +08:00
commit 0f576d5480
9 changed files with 359 additions and 0 deletions

25
package.json Normal file
View File

@@ -0,0 +1,25 @@
{
"name": "graphql-demo",
"scripts": {
"dev": "bun run --watch src/index.ts",
"compile": "graphql-codegen",
"watch": "graphql-codegen -w"
},
"module": "index.ts",
"type": "module",
"devDependencies": {
"@graphql-codegen/cli": "^5.0.5",
"@graphql-codegen/client-preset": "^4.6.2",
"@graphql-typed-document-node/core": "^3.2.0",
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.7.3"
},
"dependencies": {
"@apollo/client": "^3.13.1",
"axios": "^1.7.9",
"graphql": "^16.10.0",
"ofetch": "^1.4.1"
}
}