8000 updated · wpcodevo/nextjs-typegraphql-api@7bde7d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bde7d4

Browse files
committed
updated
1 parent 4927f6d commit 7bde7d4

File tree

5 files changed

+4
-35
lines changed

5 files changed

+4
-35
lines changed

codegen.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,14 @@
2929
"type-graphql": "^1.1.1"
3030
},
3131
"devDependencies": {
32-
"@graphql-codegen/cli": "^2.6.2",
33-
"@graphql-codegen/typescript": "^2.5.1",
34-
"@graphql-codegen/typescript-operations": "^2.4.2",
35-
"@graphql-codegen/typescript-react-query": "^3.5.14",
3632
"@types/bcryptjs": "^2.4.2",
3733
"@types/dotenv-safe": "^8.1.2",
3834
"@types/jsonwebtoken": "^8.5.8",
3935
"@types/node": "18.0.0",
4036
"@types/react": "18.0.14",
4137
"@types/react-dom": "18.0.5",
42-
"autoprefixer": "^10.4.7",
4338
"eslint": "8.18.0",
4439
"eslint-config-next": "12.1.6",
45-
"postcss": "^8.4.14",
46-
"tailwindcss": "^3.1.3",
4740
"typescript": "4.7.4"
4841
}
4942
}

postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/services/post.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export default class PostService {
3333

3434
return {
3535
status: 'success',
36-
post,
36+
post: {
37+
...post,
38+
id: post?._id,
39+
},
3740
};
3841
} catch (error: any) {
3942
errorHandler(error);

tailwind.config.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0