gkdlsb1234
@gkdlsb12349464
Reviews Written
4
Average Rating
4.0
Posts
Q&A
์๋ฒ ์ฌ์คํ์ Many to Many
์ง๋ฌธ1 ํด๊ฒฐ๋ฐฉ๋ฒ์ผ๋ก yarn add typeorm-naming-strategies์ถ๊ฐ ํ์ฌ ํด๊ฒฐ TypeOrmModule.forRoot({ type: process.env.DATABASE_TYPE as 'mariadb', host: process.env.DATABASE_HOST, port: Number(process.env.DATABASE_PORT), username: process.env.DATABASE_USERNAME, password: process.env.DATABASE_PASSWORD, database: process.env.DATABASE_DATABASE, entities: [__dirname + '/**/*.entity{.js,.ts}'], synchronize: true, // entities ์ DB๊ฐ ๋๊ธฐํ logging: true, namingStrategy: new SnakeNamingStrategy(), }),
- 0
- 3
- 78
Q&A
GraphQLClient ์ค์น ํ ๋ชจ๋์ ๋ชป์ฐพ์ต๋๋ค.
next์๊ฒฝ์ฐ ๋ด์ฅ webpack ์ผ๋ก ์ธํด์ moduleResolution ์ต์ ์ bundler ๋ก ์ค์ ํ์ฌ๋ yarn dev ์คํ์ ์๋์ผ๋ก ๋ณ๊ฒฝ์์ผ๋ฒ๋ฆฝ๋๋ค.๊ด๋ จ package.json ์ ์ฒจ๋ถ๋๋ ค๋ด ๋๋ค.ํธํ ์๋๋ ๋ฒ์ ์ด ์๋๊ฑด์ง ํ์ธ ๋ถํ๋๋ฆฝ๋๋ค.๋ํ ๊ฐ์์์ ์ ๊ณต๋ graphql-request ๋ฒ์ ์ ์๋ ค์ฃผ์๋ฉด ํด๋น ๋ฒ์ ์ผ๋ก ํ ์คํธ ํด๋ณด๊ฒ ์ต๋๋ค.{ "name": "class", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint", "generate": "graphql-codegen" }, "dependencies": { "@ant-design/icons": "5.0.1", "@apollo/client": "^3.7.1", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", "@hookform/resolvers": "^3.7.0", "@material-ui/core": "^4.12.4", "@portone/browser-sdk": "^0.0.8", "@types/lodash": "^4.14.202", "antd": "^4.22.8", "apollo-upload-client": "^17.0.0", "axios": "^0.27.2", "dompurify": "^3.1.6", "firebase": "9.10.0", "graphql": "^16.6.8", "graphql-request": "^7.1.0", "install": "^0.13.0", "lodash": "^4.17.21", "next": "12.3.4", "react": "17.0.2", "react-daum-postcode": "^3.1.3", "react-dom": "17.0.2", "react-hook-form": "^7.52.1", "react-infinite-scroller": "^1.2.6", "react-quill": "^2.0.0", "recoil": "^0.7.7", "sweetalert2": "^11.10.2", "ts-node": "^10.9.1", "utf-8-validate": "^6.0.3", "uuid": "^9.0.1", "yup": "^1.4.0" }, "devDependencies": { "@graphql-codegen/cli": "^5.0.0", "@graphql-codegen/typescript": "^4.0.1", "@types/apollo-upload-client": "^17.0.2", "@types/dompurify": "^3.0.5", "@types/node": "^22.1.0", "@types/react": "17.0.2", "@types/react-infinite-scroller": "^1.2.5", "@types/uuid": "^9.0.8", "@typescript-eslint/eslint-plugin": "^6.4.0", "eslint": "^8.0.1", "eslint-config-prettier": "^9.1.0", "eslint-config-standard-with-typescript": "^43.0.1", "eslint-plugin-import": "^2.25.2", "eslint-plugin-n": "^15.0.0 || ^16.0.0 ", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-react": "^7.33.2", "husky": "^8.0.3", "prettier": "3.2.4", "typescript": "*" }, "resolutions": { "@types/react": "17.0.2" } }
- 0
- 3
- 293




