├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── README.md ├── images ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── 7.png └── 8.png ├── nest-cli.json ├── package.json ├── patches └── @types+mongoose-paginate-v2+1.3.9.patch ├── src ├── app.module.ts ├── articles │ ├── articles.module.ts │ ├── dto │ │ ├── article │ │ │ ├── article-filter.input.ts │ │ │ ├── article-id.input.ts │ │ │ ├── article.type.ts │ │ │ ├── create-article.input.ts │ │ │ └── update-article.input.ts │ │ ├── comment │ │ │ ├── create-comment.input.ts │ │ │ └── delete-comment.input.ts │ │ └── success.type.ts │ ├── loaders │ │ └── article.loader.ts │ ├── resolvers │ │ ├── articles.resolver.ts │ │ ├── comment.resolver.ts │ │ └── favorite.resolver.ts │ ├── schemas │ │ ├── article.schema.ts │ │ └── comment.schema.ts │ ├── services │ │ ├── articles.service.ts │ │ ├── comment.service.ts │ │ ├── favorite.service.spec.ts │ │ └── favorite.service.ts │ └── subscription-constants.ts ├── auth │ ├── auth.guard.ts │ ├── auth.module.ts │ ├── auth.resolver.spec.ts │ ├── auth.resolver.ts │ ├── auth.service.spec.ts │ ├── auth.service.ts │ ├── decorators.ts │ ├── dto │ │ └── login.dto.ts │ ├── jwt-payload.interface.ts │ └── strategies │ │ └── jwt.strategy.ts ├── common │ ├── base.schema.ts │ ├── common.module.ts │ ├── constants.ts │ ├── images.controller.ts │ ├── mapper.ts │ ├── mongo-error.filter.ts │ ├── mongoose-testing.module.ts │ ├── pagination │ │ ├── pagination.args.ts │ │ └── pagination.type.ts │ └── services │ │ ├── crud.service.ts │ │ └── file-upload.service.ts ├── main.ts ├── schema.gql └── users │ ├── dto │ ├── create-user.input.ts │ └── update-user.input.ts │ ├── pipes │ ├── validate-password.pipe.spec.ts │ └── validate-password.pipe.ts │ ├── users.module.ts │ ├── users.resolver.spec.ts │ ├── users.resolver.ts │ ├── users.schema.ts │ └── users.service.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/README.md -------------------------------------------------------------------------------- /images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/1.png -------------------------------------------------------------------------------- /images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/2.png -------------------------------------------------------------------------------- /images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/3.png -------------------------------------------------------------------------------- /images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/4.png -------------------------------------------------------------------------------- /images/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/5.png -------------------------------------------------------------------------------- /images/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/6.png -------------------------------------------------------------------------------- /images/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/7.png -------------------------------------------------------------------------------- /images/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/images/8.png -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/package.json -------------------------------------------------------------------------------- /patches/@types+mongoose-paginate-v2+1.3.9.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/patches/@types+mongoose-paginate-v2+1.3.9.patch -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/articles/articles.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/articles.module.ts -------------------------------------------------------------------------------- /src/articles/dto/article/article-filter.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/article/article-filter.input.ts -------------------------------------------------------------------------------- /src/articles/dto/article/article-id.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/article/article-id.input.ts -------------------------------------------------------------------------------- /src/articles/dto/article/article.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/article/article.type.ts -------------------------------------------------------------------------------- /src/articles/dto/article/create-article.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/article/create-article.input.ts -------------------------------------------------------------------------------- /src/articles/dto/article/update-article.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/article/update-article.input.ts -------------------------------------------------------------------------------- /src/articles/dto/comment/create-comment.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/comment/create-comment.input.ts -------------------------------------------------------------------------------- /src/articles/dto/comment/delete-comment.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/comment/delete-comment.input.ts -------------------------------------------------------------------------------- /src/articles/dto/success.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/dto/success.type.ts -------------------------------------------------------------------------------- /src/articles/loaders/article.loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/loaders/article.loader.ts -------------------------------------------------------------------------------- /src/articles/resolvers/articles.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/resolvers/articles.resolver.ts -------------------------------------------------------------------------------- /src/articles/resolvers/comment.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/resolvers/comment.resolver.ts -------------------------------------------------------------------------------- /src/articles/resolvers/favorite.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/resolvers/favorite.resolver.ts -------------------------------------------------------------------------------- /src/articles/schemas/article.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/schemas/article.schema.ts -------------------------------------------------------------------------------- /src/articles/schemas/comment.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/schemas/comment.schema.ts -------------------------------------------------------------------------------- /src/articles/services/articles.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/services/articles.service.ts -------------------------------------------------------------------------------- /src/articles/services/comment.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/services/comment.service.ts -------------------------------------------------------------------------------- /src/articles/services/favorite.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/services/favorite.service.spec.ts -------------------------------------------------------------------------------- /src/articles/services/favorite.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/services/favorite.service.ts -------------------------------------------------------------------------------- /src/articles/subscription-constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/articles/subscription-constants.ts -------------------------------------------------------------------------------- /src/auth/auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/auth.guard.ts -------------------------------------------------------------------------------- /src/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/auth.module.ts -------------------------------------------------------------------------------- /src/auth/auth.resolver.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/auth.resolver.spec.ts -------------------------------------------------------------------------------- /src/auth/auth.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/auth.resolver.ts -------------------------------------------------------------------------------- /src/auth/auth.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/auth.service.spec.ts -------------------------------------------------------------------------------- /src/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/auth.service.ts -------------------------------------------------------------------------------- /src/auth/decorators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/decorators.ts -------------------------------------------------------------------------------- /src/auth/dto/login.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/dto/login.dto.ts -------------------------------------------------------------------------------- /src/auth/jwt-payload.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/jwt-payload.interface.ts -------------------------------------------------------------------------------- /src/auth/strategies/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/auth/strategies/jwt.strategy.ts -------------------------------------------------------------------------------- /src/common/base.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/base.schema.ts -------------------------------------------------------------------------------- /src/common/common.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/common.module.ts -------------------------------------------------------------------------------- /src/common/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/constants.ts -------------------------------------------------------------------------------- /src/common/images.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/images.controller.ts -------------------------------------------------------------------------------- /src/common/mapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/mapper.ts -------------------------------------------------------------------------------- /src/common/mongo-error.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/mongo-error.filter.ts -------------------------------------------------------------------------------- /src/common/mongoose-testing.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/mongoose-testing.module.ts -------------------------------------------------------------------------------- /src/common/pagination/pagination.args.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/pagination/pagination.args.ts -------------------------------------------------------------------------------- /src/common/pagination/pagination.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/pagination/pagination.type.ts -------------------------------------------------------------------------------- /src/common/services/crud.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/services/crud.service.ts -------------------------------------------------------------------------------- /src/common/services/file-upload.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/common/services/file-upload.service.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/schema.gql -------------------------------------------------------------------------------- /src/users/dto/create-user.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/dto/create-user.input.ts -------------------------------------------------------------------------------- /src/users/dto/update-user.input.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/dto/update-user.input.ts -------------------------------------------------------------------------------- /src/users/pipes/validate-password.pipe.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/pipes/validate-password.pipe.spec.ts -------------------------------------------------------------------------------- /src/users/pipes/validate-password.pipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/pipes/validate-password.pipe.ts -------------------------------------------------------------------------------- /src/users/users.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/users.module.ts -------------------------------------------------------------------------------- /src/users/users.resolver.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/users.resolver.spec.ts -------------------------------------------------------------------------------- /src/users/users.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/users.resolver.ts -------------------------------------------------------------------------------- /src/users/users.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/users.schema.ts -------------------------------------------------------------------------------- /src/users/users.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/src/users/users.service.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramzitannous/medium-graphql-nestjs/HEAD/yarn.lock --------------------------------------------------------------------------------