Tag: azure-functions
-
Configuring Graphql Resolver with Azure Function and HttpTrigger by POST
0 I have an API Management Service in Azure, there I’m trying to configure my first mutation but I’m having troubles configuring the Resolver Policiy, let me share more details: Here is my mutation: my ResolverPolicy looks like this: <http-data-source> <http-request> <set-method>POST</set-method> <set-url>[URL]</set-url> <set-header name="Content-Type" exists-action="override"> <value>application/json</value> </set-header> <set-body>@{ var args = context.Request.Body.As<JObject>(true)["arguments"]; JObject jsonObject…
-
What is the best way to add cors or headers in apollo server4 with azure integration?
0 I am facing an issue in cors. We are not able to allow the Access-Control-Allow-Origin. Please let us know how to add the headers or how to handle the Cors issue. Below added my code snippet. const { ApolloServer } = require(‘@apollo/server’); const { startServerAndCreateHandler } = require(‘@as-integrations/azure-functions’); const server = new ApolloServer({ typeDefs,…
-
GraphQL Server unreachable
0 I am trying to create serverless azure function with graphql in visualstudio code. I am following the below tutorial Build Serverless API with GraphQL and Azure— Part I After starting the application, i see the error attached in the browser. unable to execute query because of the error. Tried with the embed sandbox on…
-
Can Function Middleware and HotChocolate Middleware be used together?
0 Is it possible to use Function Middlewares and Hot Chocolate Middlewares to be used together when using Azure Functions in an isolated-process? For example: Consider Authentication middleware that is defined at a Function level via IFunctionWorkerMiddleware. When the function is triggered, the Authentication Middleware is triggered and if authentication succeeds, then passes the control…