Modulight.Modules.Server.GraphQL 0.0.7

Basic types for GraphQL server modules in Modulight modular framework.

Install-Package Modulight.Modules.Server.GraphQL -Version 0.0.7
dotnet add package Modulight.Modules.Server.GraphQL --version 0.0.7
<PackageReference Include="Modulight.Modules.Server.GraphQL" Version="0.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Modulight.Modules.Server.GraphQL --version 0.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Modulight.Modules.Server.GraphQL, 0.0.7"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Modulight.Modules.Server.GraphQL as a Cake Addin
#addin nuget:?package=Modulight.Modules.Server.GraphQL&version=0.0.7

// Install Modulight.Modules.Server.GraphQL as a Cake Tool
#tool nuget:?package=Modulight.Modules.Server.GraphQL&version=0.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Modulight.Modules.Server.GraphQL

// in Startup: void ConfigureServices(ISeviceCollection services)

services.AddModules(builder => {
    builder.UseGraphQLServerModules().AddModule<FooModule>();
});

// in Startup: void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseEndpoints(endpoints =>
{
    // modules mapper
    endpoints.MapGraphQLServerModuleEndpoints(postMapEndpoint: (module, builder) =>
    {
        builder.RequireCors(cors =>
        {
            cors.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod();
        });
    });
});

Modulight.Modules.Server.GraphQL

// in Startup: void ConfigureServices(ISeviceCollection services)

services.AddModules(builder => {
    builder.UseGraphQLServerModules().AddModule<FooModule>();
});

// in Startup: void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseEndpoints(endpoints =>
{
    // modules mapper
    endpoints.MapGraphQLServerModuleEndpoints(postMapEndpoint: (module, builder) =>
    {
        builder.RequireCors(cors =>
        {
            cors.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod();
        });
    });
});

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.7 117 5/31/2021
0.0.7-preview.8 149 5/30/2021
0.0.6 96 5/30/2021
0.0.5 98 4/3/2021
0.0.5-preview.18 49 3/14/2021
0.0.5-preview.13 76 3/12/2021
0.0.5-preview.12 44 3/12/2021
0.0.5-preview.11 60 3/10/2021
0.0.5-preview.10 72 3/10/2021
0.0.5-preview.4 55 3/4/2021
0.0.5-preview.2 72 3/4/2021
0.0.4 76 3/4/2021
0.0.4-preview.40 45 2/22/2021
0.0.4-preview.30 107 2/21/2021
0.0.4-preview.28 80 2/20/2021
0.0.4-preview.25 49 2/20/2021
0.0.4-preview.6 81 2/6/2021
0.0.3 86 2/5/2021
0.0.3-preview.39 61 2/3/2021
0.0.3-preview.38 52 2/1/2021
0.0.3-preview.37 65 1/31/2021
0.0.2 60 1/29/2021
0.0.2-preview.36 121 1/17/2021
0.0.2-preview.34 78 1/16/2021
0.0.1-preview.30 69 1/13/2021
0.0.1-preview.29 95 1/13/2021
0.0.1-preview.28 56 1/12/2021
0.0.1-preview.25 65 1/11/2021