├── .gitignore ├── package.json ├── src ├── models │ ├── Post.ts │ └── User.ts ├── modules │ ├── posts │ │ ├── controllers │ │ │ └── GetPostsByUserController.ts │ │ ├── graphql │ │ │ ├── posts.resolvers.ts │ │ │ └── schema.gql │ │ └── services │ │ │ ├── CreatePostService.ts │ │ │ └── GetPostByUserService.ts │ └── users │ │ ├── controllers │ │ └── CreateUserController.ts │ │ ├── graphql │ │ ├── schema.gql │ │ └── users.resolvers.ts │ │ └── services │ │ ├── CreateUserService.ts │ │ └── GetUsersService.ts ├── resolvers.ts ├── routes.ts ├── schemas.ts └── server.ts ├── tsconfig.json ├── yarn-error.log └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/package.json -------------------------------------------------------------------------------- /src/models/Post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/models/Post.ts -------------------------------------------------------------------------------- /src/models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/models/User.ts -------------------------------------------------------------------------------- /src/modules/posts/controllers/GetPostsByUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/posts/controllers/GetPostsByUserController.ts -------------------------------------------------------------------------------- /src/modules/posts/graphql/posts.resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/posts/graphql/posts.resolvers.ts -------------------------------------------------------------------------------- /src/modules/posts/graphql/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/posts/graphql/schema.gql -------------------------------------------------------------------------------- /src/modules/posts/services/CreatePostService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/posts/services/CreatePostService.ts -------------------------------------------------------------------------------- /src/modules/posts/services/GetPostByUserService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/posts/services/GetPostByUserService.ts -------------------------------------------------------------------------------- /src/modules/users/controllers/CreateUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/users/controllers/CreateUserController.ts -------------------------------------------------------------------------------- /src/modules/users/graphql/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/users/graphql/schema.gql -------------------------------------------------------------------------------- /src/modules/users/graphql/users.resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/users/graphql/users.resolvers.ts -------------------------------------------------------------------------------- /src/modules/users/services/CreateUserService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/users/services/CreateUserService.ts -------------------------------------------------------------------------------- /src/modules/users/services/GetUsersService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/modules/users/services/GetUsersService.ts -------------------------------------------------------------------------------- /src/resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/resolvers.ts -------------------------------------------------------------------------------- /src/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/routes.ts -------------------------------------------------------------------------------- /src/schemas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/schemas.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/src/server.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn-error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/yarn-error.log -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-content/youtube_graphql_express/HEAD/yarn.lock --------------------------------------------------------------------------------