using ShoppingAssistantApi.Api.Queries; using ShoppingAssistantApi.Api.Mutations; namespace ShoppingAssistantApi.Api.ApiExtentions; public static class GraphQlExtention { public static IServiceCollection AddGraphQl(this IServiceCollection services) { services .AddGraphQLServer() .AddQueryType() .AddTypeExtension() .AddTypeExtension() .AddMutationType() .AddTypeExtension() .AddTypeExtension() .AddTypeExtension() .AddAuthorization() .InitializeOnStartup(keepWarm: true); return services; } }