From a482f594e6bd68b83a96ba7648cf400555c2e034 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Wed, 11 Aug 2021 17:05:56 -0400 Subject: [PATCH] ready for 2.0.0 stable. --- .../PoweredSoft.CQRS.Abstractions.csproj | 4 ++++ .../PoweredSoft.CQRS.AspNetCore.Abstractions.csproj | 4 ++++ ...redSoft.CQRS.AspNetCore.OData.Abstractions.csproj | 4 ++++ .../PoweredSoft.CQRS.AspNetCore.OData.csproj | 4 ++++ .../PoweredSoft.CQRS.AspNetCore.csproj | 4 ++++ ...PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj | 4 ++++ .../PoweredSoft.CQRS.DynamicQuery.AspNetCore.csproj | 4 ++++ .../PoweredSoft.CQRS.DynamicQuery.csproj | 4 ++++ .../PoweredSoft.CQRS.FluentValidation.csproj | 4 ++++ .../PoweredSoft.CQRS.GraphQL.Abstractions.csproj | 4 ++++ .../PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj | 4 ++++ .../PoweredSoft.CQRS.GraphQL.FluentValidation.csproj | 4 ++++ ...oft.CQRS.GraphQL.HotChocolate.DynamicQuery.csproj | 4 ++++ .../PoweredSoft.CQRS.GraphQL.HotChocolate.csproj | 4 ++++ PoweredSoft.CQRS/PoweredSoft.CQRS.csproj | 6 ++++++ README.md | 12 ++++++++++++ 16 files changed, 74 insertions(+) diff --git a/PoweredSoft.CQRS.Abstractions/PoweredSoft.CQRS.Abstractions.csproj b/PoweredSoft.CQRS.Abstractions/PoweredSoft.CQRS.Abstractions.csproj index 5e31d58..8fc4cc1 100644 --- a/PoweredSoft.CQRS.Abstractions/PoweredSoft.CQRS.Abstractions.csproj +++ b/PoweredSoft.CQRS.Abstractions/PoweredSoft.CQRS.Abstractions.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.AspNetCore.Abstractions/PoweredSoft.CQRS.AspNetCore.Abstractions.csproj b/PoweredSoft.CQRS.AspNetCore.Abstractions/PoweredSoft.CQRS.AspNetCore.Abstractions.csproj index 9f5c4f4..892921b 100644 --- a/PoweredSoft.CQRS.AspNetCore.Abstractions/PoweredSoft.CQRS.AspNetCore.Abstractions.csproj +++ b/PoweredSoft.CQRS.AspNetCore.Abstractions/PoweredSoft.CQRS.AspNetCore.Abstractions.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.AspNetCore.OData.Abstractions/PoweredSoft.CQRS.AspNetCore.OData.Abstractions.csproj b/PoweredSoft.CQRS.AspNetCore.OData.Abstractions/PoweredSoft.CQRS.AspNetCore.OData.Abstractions.csproj index 9f5c4f4..892921b 100644 --- a/PoweredSoft.CQRS.AspNetCore.OData.Abstractions/PoweredSoft.CQRS.AspNetCore.OData.Abstractions.csproj +++ b/PoweredSoft.CQRS.AspNetCore.OData.Abstractions/PoweredSoft.CQRS.AspNetCore.OData.Abstractions.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.AspNetCore.OData/PoweredSoft.CQRS.AspNetCore.OData.csproj b/PoweredSoft.CQRS.AspNetCore.OData/PoweredSoft.CQRS.AspNetCore.OData.csproj index 9ac5aae..de16928 100644 --- a/PoweredSoft.CQRS.AspNetCore.OData/PoweredSoft.CQRS.AspNetCore.OData.csproj +++ b/PoweredSoft.CQRS.AspNetCore.OData/PoweredSoft.CQRS.AspNetCore.OData.csproj @@ -2,6 +2,10 @@ netcoreapp3.1 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.AspNetCore/PoweredSoft.CQRS.AspNetCore.csproj b/PoweredSoft.CQRS.AspNetCore/PoweredSoft.CQRS.AspNetCore.csproj index 4a1e9ad..f106188 100644 --- a/PoweredSoft.CQRS.AspNetCore/PoweredSoft.CQRS.AspNetCore.csproj +++ b/PoweredSoft.CQRS.AspNetCore/PoweredSoft.CQRS.AspNetCore.csproj @@ -2,6 +2,10 @@ netcoreapp3.1 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj b/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj index 52383af..0f6a0ea 100644 --- a/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj +++ b/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.DynamicQuery.AspNetCore/PoweredSoft.CQRS.DynamicQuery.AspNetCore.csproj b/PoweredSoft.CQRS.DynamicQuery.AspNetCore/PoweredSoft.CQRS.DynamicQuery.AspNetCore.csproj index d3bb98b..d369233 100644 --- a/PoweredSoft.CQRS.DynamicQuery.AspNetCore/PoweredSoft.CQRS.DynamicQuery.AspNetCore.csproj +++ b/PoweredSoft.CQRS.DynamicQuery.AspNetCore/PoweredSoft.CQRS.DynamicQuery.AspNetCore.csproj @@ -2,6 +2,10 @@ netcoreapp3.1 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj b/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj index 19e5c02..e4026ed 100644 --- a/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj +++ b/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.FluentValidation/PoweredSoft.CQRS.FluentValidation.csproj b/PoweredSoft.CQRS.FluentValidation/PoweredSoft.CQRS.FluentValidation.csproj index 84fd466..dfb63a4 100644 --- a/PoweredSoft.CQRS.FluentValidation/PoweredSoft.CQRS.FluentValidation.csproj +++ b/PoweredSoft.CQRS.FluentValidation/PoweredSoft.CQRS.FluentValidation.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.GraphQL.Abstractions/PoweredSoft.CQRS.GraphQL.Abstractions.csproj b/PoweredSoft.CQRS.GraphQL.Abstractions/PoweredSoft.CQRS.GraphQL.Abstractions.csproj index 9f5c4f4..892921b 100644 --- a/PoweredSoft.CQRS.GraphQL.Abstractions/PoweredSoft.CQRS.GraphQL.Abstractions.csproj +++ b/PoweredSoft.CQRS.GraphQL.Abstractions/PoweredSoft.CQRS.GraphQL.Abstractions.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj b/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj index 074c166..12177ff 100644 --- a/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj +++ b/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.GraphQL.FluentValidation/PoweredSoft.CQRS.GraphQL.FluentValidation.csproj b/PoweredSoft.CQRS.GraphQL.FluentValidation/PoweredSoft.CQRS.GraphQL.FluentValidation.csproj index 5340204..21fa40e 100644 --- a/PoweredSoft.CQRS.GraphQL.FluentValidation/PoweredSoft.CQRS.GraphQL.FluentValidation.csproj +++ b/PoweredSoft.CQRS.GraphQL.FluentValidation/PoweredSoft.CQRS.GraphQL.FluentValidation.csproj @@ -2,6 +2,10 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery.csproj b/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery.csproj index cb249a0..8c5957d 100644 --- a/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery.csproj +++ b/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery/PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery.csproj @@ -2,6 +2,10 @@ netcoreapp3.1 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS.GraphQL.HotChocolate/PoweredSoft.CQRS.GraphQL.HotChocolate.csproj b/PoweredSoft.CQRS.GraphQL.HotChocolate/PoweredSoft.CQRS.GraphQL.HotChocolate.csproj index fd5be00..d369197 100644 --- a/PoweredSoft.CQRS.GraphQL.HotChocolate/PoweredSoft.CQRS.GraphQL.HotChocolate.csproj +++ b/PoweredSoft.CQRS.GraphQL.HotChocolate/PoweredSoft.CQRS.GraphQL.HotChocolate.csproj @@ -2,6 +2,10 @@ netcoreapp3.1 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team diff --git a/PoweredSoft.CQRS/PoweredSoft.CQRS.csproj b/PoweredSoft.CQRS/PoweredSoft.CQRS.csproj index 874be33..d081319 100644 --- a/PoweredSoft.CQRS/PoweredSoft.CQRS.csproj +++ b/PoweredSoft.CQRS/PoweredSoft.CQRS.csproj @@ -2,8 +2,14 @@ netstandard2.0 + Powered Softwares Inc. + https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&r=g&d=retro + PoweredSoft + PoweredSoft Team + + diff --git a/README.md b/README.md index d98a3ae..4079703 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,10 @@ Our implementation of query and command responsability segregation (CQRS). | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -----------------------------------------------------: | | PoweredSoft.CQRS.Abstractions | [![NuGet](https://img.shields.io/nuget/v/PoweredSoft.CQRS.Abstractions.svg?style=flat-square&label=nuget)](https://www.nuget.org/packages/PoweredSoft.CQRS.Asbtractions/) | ```PM> Install-Package PoweredSoft.CQRS.Abstractions ``` | | PoweredSoft.CQRS | [![NuGet](https://img.shields.io/nuget/v/PoweredSoft.CQRS.svg?style=flat-square&label=nuget)](https://www.nuget.org/packages/PoweredSoft.CQRS/) | ```PM> Install-Package PoweredSoft.CQRS ``` | +| PoweredSoft.CQRS.FluentValidation | [![NuGet](https://img.shields.io/nuget/v/PoweredSoft.CQRS.FluentValidation.svg?style=flat-square&label=nuget)](https://www.nuget.org/packages/PoweredSoft.CQRS.FluentValidation/) | ```PM> Install-Package PoweredSoft.CQRS.FluentValidation ``` | | PoweredSoft.CQRS.AspNetCore.Abstractions | [![NuGet](https://img.shields.io/nuget/v/PoweredSoft.CQRS.AspNetCore.Abstractions.svg?style=flat-square&label=nuget)](https://www.nuget.org/packages/PoweredSoft.CQRS.AspNetCore.Abstractions/) | ```PM> Install-Package PoweredSoft.CQRS.AspNetCore.Abstractions ``` | | PoweredSoft.CQRS.AspNetCore | [![NuGet](https://img.shields.io/nuget/v/PoweredSoft.CQRS.AspNetCore.svg?style=flat-square&label=nuget)](https://www.nuget.org/packages/PoweredSoft.CQRS.AspNetCore/) | ```PM> Install-Package PoweredSoft.CQRS.AspNetCore ``` | +| PoweredSoft.CQRS.GraphQL.HotChocolate | [![NuGet](https://img.shields.io/nuget/v/PoweredSoft.CQRS.GraphQL.HotChocolate.svg?style=flat-square&label=nuget)](https://www.nuget.org/packages/PoweredSoft.CQRS.GraphQL.HotChocolate/) | ```PM> Install-Package PoweredSoft.CQRS.GraphQL.HotChocolate ``` | ## Sample of startup code for aspnetcore MVC @@ -32,6 +34,16 @@ public void ConfigureServices(IServiceCollection services) .AddPoweredSoftCommands() // adds commands to aspnetcore mvc. (you can make it configurable to load balance only commands on a instance) .AddFluentValidation(); + // enabling gql. + services + .AddGraphQLServer() + .AddProjections() + .AddQueryType(d => d.Name("Query")) + .AddPoweredSoftQueries() + .AddPoweredSoftDynamicQueries() + .AddMutationType(d => d.Name("Mutation")) + .AddPoweredSoftMutations(); + services.AddSwaggerGen(); } ```