├── .gitattributes ├── .gitignore ├── GraphQLDemo.API ├── .dockerignore ├── DTOs │ ├── CourseDTO.cs │ ├── InstructorDTO.cs │ └── StudentDTO.cs ├── DataLoaders │ ├── InstructorDataLoader.cs │ └── UserDataLoader.cs ├── Dockerfile ├── GraphQLDemo.API.csproj ├── Middlewares │ └── UseUser │ │ ├── UseUserAttribute.cs │ │ ├── UserAttribute.cs │ │ └── UserMiddleware.cs ├── Migrations │ ├── 20220218212605_Initial.Designer.cs │ ├── 20220218212605_Initial.cs │ └── SchoolDbContextModelSnapshot.cs ├── Models │ ├── Subject.cs │ └── User.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── Schema │ ├── Filters │ │ └── CourseFilterType.cs │ ├── Mutations │ │ ├── CourseMutation.cs │ │ ├── CourseResult.cs │ │ ├── CourseTypeInput.cs │ │ ├── InstructorMutation.cs │ │ ├── InstructorResult.cs │ │ ├── InstructorTypeInput.cs │ │ └── Mutation.cs │ ├── Queries │ │ ├── CourseQuery.cs │ │ ├── CourseType.cs │ │ ├── ISearchResultType.cs │ │ ├── InstructorQuery.cs │ │ ├── InstructorType.cs │ │ ├── Query.cs │ │ ├── StudentType.cs │ │ └── UserType.cs │ ├── Sorters │ │ └── CourseSortType.cs │ └── Subscriptions │ │ └── Subscription.cs ├── Services │ ├── Courses │ │ └── CoursesRepository.cs │ ├── Instructors │ │ └── InstructorsRepository.cs │ └── SchoolDbContext.cs ├── Startup.cs ├── Validators │ ├── CourseTypeInputValidator.cs │ └── InstructorTypeInputValidator.cs ├── appsettings.Development.json └── appsettings.json ├── GraphQLDemo.Client ├── .config │ └── dotnet-tools.json ├── .graphqlrc.json ├── Generated │ └── GraphQLDemoClient.StrawberryShake.cs ├── GraphQLDemo.Client.csproj ├── Mutations │ ├── CreateCourseMutation.graphql │ ├── DeleteCourseMutation.graphql │ └── UpdateCourseMutation.graphql ├── Program.cs ├── Queries │ ├── CourseByIdQuery.graphql │ ├── CoursesQuery.graphql │ ├── InstructionsQuery.graphql │ └── SearchQuery.graphql ├── Scripts │ ├── CreateCourseScript.cs │ ├── GetCoursesScript.cs │ ├── LoginScript.cs │ └── SearchScript.cs ├── Stores │ └── TokenStore.cs ├── Subscriptions │ ├── CourseCreatedSubscription.graphql │ └── CourseUpdatedSubscription.graphql ├── appsettings.json ├── schema.extensions.graphql └── schema.graphql └── GraphQLDemo.sln /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/.gitignore -------------------------------------------------------------------------------- /GraphQLDemo.API/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/.dockerignore -------------------------------------------------------------------------------- /GraphQLDemo.API/DTOs/CourseDTO.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/DTOs/CourseDTO.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/DTOs/InstructorDTO.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/DTOs/InstructorDTO.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/DTOs/StudentDTO.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/DTOs/StudentDTO.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/DataLoaders/InstructorDataLoader.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/DataLoaders/InstructorDataLoader.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/DataLoaders/UserDataLoader.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/DataLoaders/UserDataLoader.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Dockerfile -------------------------------------------------------------------------------- /GraphQLDemo.API/GraphQLDemo.API.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/GraphQLDemo.API.csproj -------------------------------------------------------------------------------- /GraphQLDemo.API/Middlewares/UseUser/UseUserAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Middlewares/UseUser/UseUserAttribute.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Middlewares/UseUser/UserAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Middlewares/UseUser/UserAttribute.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Middlewares/UseUser/UserMiddleware.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Middlewares/UseUser/UserMiddleware.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Migrations/20220218212605_Initial.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Migrations/20220218212605_Initial.Designer.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Migrations/20220218212605_Initial.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Migrations/20220218212605_Initial.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Migrations/SchoolDbContextModelSnapshot.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Migrations/SchoolDbContextModelSnapshot.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Models/Subject.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Models/Subject.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Models/User.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Models/User.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Program.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Properties/launchSettings.json -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Filters/CourseFilterType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Filters/CourseFilterType.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Mutations/CourseMutation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Mutations/CourseMutation.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Mutations/CourseResult.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Mutations/CourseResult.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Mutations/CourseTypeInput.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Mutations/CourseTypeInput.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Mutations/InstructorMutation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Mutations/InstructorMutation.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Mutations/InstructorResult.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Mutations/InstructorResult.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Mutations/InstructorTypeInput.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Mutations/InstructorTypeInput.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Mutations/Mutation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Mutations/Mutation.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/CourseQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/CourseQuery.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/CourseType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/CourseType.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/ISearchResultType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/ISearchResultType.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/InstructorQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/InstructorQuery.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/InstructorType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/InstructorType.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/Query.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/Query.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/StudentType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/StudentType.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Queries/UserType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Queries/UserType.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Sorters/CourseSortType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Sorters/CourseSortType.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Schema/Subscriptions/Subscription.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Schema/Subscriptions/Subscription.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Services/Courses/CoursesRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Services/Courses/CoursesRepository.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Services/Instructors/InstructorsRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Services/Instructors/InstructorsRepository.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Services/SchoolDbContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Services/SchoolDbContext.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Startup.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Validators/CourseTypeInputValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Validators/CourseTypeInputValidator.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/Validators/InstructorTypeInputValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/Validators/InstructorTypeInputValidator.cs -------------------------------------------------------------------------------- /GraphQLDemo.API/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/appsettings.Development.json -------------------------------------------------------------------------------- /GraphQLDemo.API/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.API/appsettings.json -------------------------------------------------------------------------------- /GraphQLDemo.Client/.config/dotnet-tools.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/.config/dotnet-tools.json -------------------------------------------------------------------------------- /GraphQLDemo.Client/.graphqlrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/.graphqlrc.json -------------------------------------------------------------------------------- /GraphQLDemo.Client/Generated/GraphQLDemoClient.StrawberryShake.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Generated/GraphQLDemoClient.StrawberryShake.cs -------------------------------------------------------------------------------- /GraphQLDemo.Client/GraphQLDemo.Client.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/GraphQLDemo.Client.csproj -------------------------------------------------------------------------------- /GraphQLDemo.Client/Mutations/CreateCourseMutation.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Mutations/CreateCourseMutation.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Mutations/DeleteCourseMutation.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Mutations/DeleteCourseMutation.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Mutations/UpdateCourseMutation.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Mutations/UpdateCourseMutation.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Program.cs -------------------------------------------------------------------------------- /GraphQLDemo.Client/Queries/CourseByIdQuery.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Queries/CourseByIdQuery.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Queries/CoursesQuery.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Queries/CoursesQuery.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Queries/InstructionsQuery.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Queries/InstructionsQuery.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Queries/SearchQuery.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Queries/SearchQuery.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Scripts/CreateCourseScript.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Scripts/CreateCourseScript.cs -------------------------------------------------------------------------------- /GraphQLDemo.Client/Scripts/GetCoursesScript.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Scripts/GetCoursesScript.cs -------------------------------------------------------------------------------- /GraphQLDemo.Client/Scripts/LoginScript.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Scripts/LoginScript.cs -------------------------------------------------------------------------------- /GraphQLDemo.Client/Scripts/SearchScript.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Scripts/SearchScript.cs -------------------------------------------------------------------------------- /GraphQLDemo.Client/Stores/TokenStore.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Stores/TokenStore.cs -------------------------------------------------------------------------------- /GraphQLDemo.Client/Subscriptions/CourseCreatedSubscription.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Subscriptions/CourseCreatedSubscription.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/Subscriptions/CourseUpdatedSubscription.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/Subscriptions/CourseUpdatedSubscription.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/appsettings.json -------------------------------------------------------------------------------- /GraphQLDemo.Client/schema.extensions.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/schema.extensions.graphql -------------------------------------------------------------------------------- /GraphQLDemo.Client/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.Client/schema.graphql -------------------------------------------------------------------------------- /GraphQLDemo.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/GraphQLDemo-Hotchocolate/HEAD/GraphQLDemo.sln --------------------------------------------------------------------------------