Wie rufe ich UseSendPoints () und Mapgraphql () für Hotchocolat auf Azure-Funktion isoliert/außerhalb des Verfahrens aufC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 Wie rufe ich UseSendPoints () und Mapgraphql () für Hotchocolat auf Azure-Funktion isoliert/außerhalb des Verfahrens auf

Post by Anonymous »

Ich folge diesem Repo https://github.com/chandsalam1108/graphqlazfunctionNet5 und https://chillicream.com/docs/hotchocola ... mapgraphql
Wie kann ich MAPNGRAPHQL () nenne mapgraphql ()? Ich habe nur Zugriff auf IOHost :

Code: Select all

public class Program
{
public static void Main()
{
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.ConfigureServices(s =>
{
s.AddTransient();
s.AddSingleton();
s.AddGraphQLServer()
.AddQueryType()
.AddFiltering()
.AddSorting();

}).Build();

host.Run();
}
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post