apollo-server-integrations / apollo-server-integration-azure-functions

MIT License
32 stars 13 forks source link

Add support for Azure Function v4 #66

Closed barddoo closed 6 months ago

barddoo commented 1 year ago

Solves https://github.com/apollo-server-integrations/apollo-server-integration-azure-functions/issues/41

That's how the api looks like:

import { ApolloServer } from '@apollo/server';
import { v4 } from '@as-integrations/azure-functions';

// The GraphQL schema
const typeDefs = `#graphql
  type Query {
    hello: String
  }
`;

// A map of functions which return data for the schema.
const resolvers = {
  Query: {
    hello: () => 'world',
  },
};

// Set up Apollo Server
const server = new ApolloServer({
  typeDefs,
  resolvers,
});

app.http('graphql', {
  handler: v4.startServerAndCreateHandler(server),
});
cqhung1412 commented 10 months ago

@aaronpowell please review this and merge soon

gidich commented 9 months ago

@aaronpowell any plans on when this may get merged in? - Azure Function Programming Model v4 is now GA

heruwala commented 9 months ago

We are currently in the process of upgrading to utilize Azure Function Programming Model v4. This pull request (PR) is crucial for us to proceed with the upgrade. Kindly merge at your earliest convenience. Thank you.

Mingyang-Li commented 7 months ago

Hey team, looking forward to seeing this PR getting merged 🙏🙏