Skip to content

Commit

Permalink
Restructure types/resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTTY committed Oct 14, 2024
1 parent 9a047b8 commit 3ca7c94
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static IServiceCollection AddGraphQlServices(this IServiceCollection serv
// TODO: Configure cost analyzer at some point (enforces maximum query costs)
.AddGraphQLServer(disableCostAnalyzer: true)
// Adds all GraphQL query and mutation types using the code generator (looks for attributes)
.AddTypes()
.AddResolvers()
// TODO: Document what the different extensions methods do
// AddQueryConventions: https://www.youtube.com/watch?v=yoW2Mt6C0Cg
.AddQueryConventions()
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[assembly: Module("Types")]
[assembly: Module("Resolvers")]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using RobinTTY.PersonalFinanceDashboard.Core.Models;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Repositories;

namespace RobinTTY.PersonalFinanceDashboard.Api.Types.Mutations;
namespace RobinTTY.PersonalFinanceDashboard.Api.Resolvers.Mutations;

/// <summary>
/// <see cref="AuthenticationRequest"/> related mutation resolvers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using RobinTTY.PersonalFinanceDashboard.Core.Models;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Repositories;

namespace RobinTTY.PersonalFinanceDashboard.Api.Types.Mutations;
namespace RobinTTY.PersonalFinanceDashboard.Api.Resolvers.Mutations;

/// <summary>
/// <see cref="BankingInstitution"/> related mutation resolvers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using RobinTTY.PersonalFinanceDashboard.Core.Models;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Repositories;

namespace RobinTTY.PersonalFinanceDashboard.Api.Types.Mutations;
namespace RobinTTY.PersonalFinanceDashboard.Api.Resolvers.Mutations;

/// <summary>
/// <see cref="Transaction"/> related mutation resolvers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using RobinTTY.PersonalFinanceDashboard.Core.Models;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Repositories;

namespace RobinTTY.PersonalFinanceDashboard.Api.Types.Queries;
namespace RobinTTY.PersonalFinanceDashboard.Api.Resolvers.Queries;

/// <summary>
/// <see cref="AuthenticationRequest"/> related query resolvers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using RobinTTY.PersonalFinanceDashboard.Core.Models;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Repositories;

namespace RobinTTY.PersonalFinanceDashboard.Api.Types.Queries;
namespace RobinTTY.PersonalFinanceDashboard.Api.Resolvers.Queries;

/// <summary>
/// <see cref="BankAccount"/> related query resolvers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using HotChocolate.Types;
using RobinTTY.PersonalFinanceDashboard.Core.Models;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Repositories;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Services;

namespace RobinTTY.PersonalFinanceDashboard.Api.Types.Queries;
namespace RobinTTY.PersonalFinanceDashboard.Api.Resolvers.Queries;

/// <summary>
/// <see cref="BankingInstitution"/> related query resolvers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using RobinTTY.PersonalFinanceDashboard.Core.Models;
using RobinTTY.PersonalFinanceDashboard.Infrastructure.Repositories;

namespace RobinTTY.PersonalFinanceDashboard.Api.Types.Queries;
namespace RobinTTY.PersonalFinanceDashboard.Api.Resolvers.Queries;

/// <summary>
/// <see cref="Transaction"/> related query resolvers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RobinTTY.PersonalFinanceDashboard.Api.Types;
namespace RobinTTY.PersonalFinanceDashboard.Api.Utility;

/// <summary>
/// The configuration of the application server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using RobinTTY.PersonalFinanceDashboard.Api.Types;

Check failure on line 4 in src/server/RobinTTY.PersonalFinanceDashboard.API/Utility/AppConfigurationManager.cs

View workflow job for this annotation

GitHub Actions / Build library

The type or namespace name 'Types' does not exist in the namespace 'RobinTTY.PersonalFinanceDashboard.Api' (are you missing an assembly reference?)

Check failure on line 4 in src/server/RobinTTY.PersonalFinanceDashboard.API/Utility/AppConfigurationManager.cs

View workflow job for this annotation

GitHub Actions / Build library

The type or namespace name 'Types' does not exist in the namespace 'RobinTTY.PersonalFinanceDashboard.Api' (are you missing an assembly reference?)
using RobinTTY.PersonalFinanceDashboard.Api.Utility;

namespace RobinTTY.PersonalFinanceDashboard.API.Utility;

Expand Down

0 comments on commit 3ca7c94

Please sign in to comment.