Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions GraphQLDemo/GraphQLDemo.API/DTOs/CourseDTO.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using GraphQLDemo.API.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.DTOs
{
Expand Down
2 changes: 0 additions & 2 deletions GraphQLDemo/GraphQLDemo.API/DTOs/InstructorDTO.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.DTOs
{
Expand Down
2 changes: 0 additions & 2 deletions GraphQLDemo/GraphQLDemo.API/DTOs/StudentDTO.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.DTOs
{
Expand Down
1 change: 0 additions & 1 deletion GraphQLDemo/GraphQLDemo.API/DataLoaders/UserDataLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using FirebaseAdmin.Auth;
using GraphQLDemo.API.Schema.Queries;
using GreenDonut;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using HotChocolate.Types;
using HotChocolate.Types.Descriptors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Middlewares.UseUser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using HotChocolate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Middlewares.UseUser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using FirebaseAdminAuthentication.DependencyInjection.Models;
using GraphQLDemo.API.Models;
using HotChocolate.Resolvers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

Expand Down
7 changes: 1 addition & 6 deletions GraphQLDemo/GraphQLDemo.API/Models/Subject.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Models
namespace GraphQLDemo.API.Models
{
public enum Subject
{
Expand Down
7 changes: 1 addition & 6 deletions GraphQLDemo/GraphQLDemo.API/Models/User.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Models
namespace GraphQLDemo.API.Models
{
public class User
{
Expand Down
6 changes: 0 additions & 6 deletions GraphQLDemo/GraphQLDemo.API/Program.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
using GraphQLDemo.API.Services;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using GraphQLDemo.API.Schema.Queries;
using HotChocolate.Data.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Filters
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using AppAny.HotChocolate.FluentValidation;
using FirebaseAdminAuthentication.DependencyInjection.Models;
using FluentValidation.Results;
using GraphQLDemo.API.DTOs;
using GraphQLDemo.API.Middlewares.UseUser;
using GraphQLDemo.API.Models;
using GraphQLDemo.API.Schema.Queries;
using GraphQLDemo.API.Schema.Subscriptions;
using GraphQLDemo.API.Services.Courses;
using GraphQLDemo.API.Validators;
Expand All @@ -13,9 +10,6 @@
using HotChocolate.Subscriptions;
using HotChocolate.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Mutations
Expand Down
4 changes: 0 additions & 4 deletions GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseResult.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using GraphQLDemo.API.Models;
using GraphQLDemo.API.Schema.Queries;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Mutations
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using GraphQLDemo.API.Models;
using GraphQLDemo.API.Schema.Queries;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Mutations
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace GraphQLDemo.API.Schema.Mutations
namespace GraphQLDemo.API.Schema.Mutations
{
public class InstructorTypeInput
{
Expand Down
2 changes: 0 additions & 2 deletions GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
using GraphQLDemo.API.Schema.Filters;
using GraphQLDemo.API.Schema.Sorters;
using GraphQLDemo.API.Services;
using GraphQLDemo.API.Services.Courses;
using HotChocolate;
using HotChocolate.Data;
using HotChocolate.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

Expand Down
5 changes: 1 addition & 4 deletions GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseType.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using FirebaseAdmin.Auth;
using GraphQLDemo.API.DataLoaders;
using GraphQLDemo.API.DataLoaders;
using GraphQLDemo.API.DTOs;
using GraphQLDemo.API.Models;
using GraphQLDemo.API.Services.Instructors;
using HotChocolate;
using HotChocolate.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using HotChocolate.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Queries
{
Expand Down
3 changes: 0 additions & 3 deletions GraphQLDemo/GraphQLDemo.API/Schema/Queries/InstructorType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Queries
{
Expand Down
3 changes: 0 additions & 3 deletions GraphQLDemo/GraphQLDemo.API/Schema/Queries/StudentType.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using HotChocolate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Queries
{
Expand Down
7 changes: 1 addition & 6 deletions GraphQLDemo/GraphQLDemo.API/Schema/Queries/UserType.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Queries
namespace GraphQLDemo.API.Schema.Queries
{
public class UserType
{
Expand Down
4 changes: 0 additions & 4 deletions GraphQLDemo/GraphQLDemo.API/Schema/Sorters/CourseSortType.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using GraphQLDemo.API.Schema.Queries;
using HotChocolate.Data.Sorting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Sorters
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using GraphQLDemo.API.Schema.Mutations;
using GraphQLDemo.API.Schema.Queries;
using HotChocolate;
using HotChocolate.Execution;
using HotChocolate.Subscriptions;
using HotChocolate.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Schema.Subscriptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Services.Courses
Expand Down
4 changes: 0 additions & 4 deletions GraphQLDemo/GraphQLDemo.API/Services/SchoolDbContext.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using GraphQLDemo.API.DTOs;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Services
{
Expand Down
6 changes: 0 additions & 6 deletions GraphQLDemo/GraphQLDemo.API/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using AppAny.HotChocolate.FluentValidation;
using FirebaseAdmin;
using FirebaseAdmin.Auth;
using FirebaseAdminAuthentication.DependencyInjection.Extensions;
using FirebaseAdminAuthentication.DependencyInjection.Models;
using FluentValidation.AspNetCore;
using Google.Apis.Auth.OAuth2;
using GraphQLDemo.API.DataLoaders;
using GraphQLDemo.API.Schema;
using GraphQLDemo.API.Schema.Mutations;
using GraphQLDemo.API.Schema.Queries;
using GraphQLDemo.API.Schema.Subscriptions;
Expand All @@ -16,15 +14,11 @@
using GraphQLDemo.API.Validators;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using FluentValidation;
using GraphQLDemo.API.Schema.Mutations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLDemo.API.Validators
{
Expand Down
14 changes: 8 additions & 6 deletions GraphQLDemo/GraphQLDemo.Client/GraphQLDemo.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -17,11 +18,11 @@

<ItemGroup>
<PackageReference Include="FirebaseAuthentication.net" Version="3.7.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="StrawberryShake.CodeGeneration.CSharp.Analyzers" Version="11.3.2" />
<PackageReference Include="StrawberryShake.Transport.Http" Version="11.3.2" />
<PackageReference Include="StrawberryShake.Transport.WebSockets" Version="11.3.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="StrawberryShake.CodeGeneration.CSharp.Analyzers" Version="12.12.1" />
<PackageReference Include="StrawberryShake.Transport.Http" Version="12.12.1" />
<PackageReference Include="StrawberryShake.Transport.WebSockets" Version="12.12.1" />
<PackageReference Include="System.Reactive" Version="5.0.0" />
</ItemGroup>

Expand All @@ -32,6 +33,7 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Generated" />
<Folder Include="Mutations\" />
<Folder Include="Subscriptions\" />
</ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions GraphQLDemo/GraphQLDemo.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using StrawberryShake;
using System;
using System.Linq;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
Expand Down
3 changes: 0 additions & 3 deletions GraphQLDemo/GraphQLDemo.Client/Scripts/CreateCourseScript.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using StrawberryShake;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GraphQLDemo.Client.Scripts
Expand Down
Loading