Page 1 of 1

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

Posted: 15 May 2025, 20:41
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();
}
}