Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Azure Function v4 #66

Merged
merged 1 commit into from
May 29, 2024

Conversation

barddoo
Copy link

@barddoo barddoo commented Nov 22, 2023

Solves #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
Copy link

@aaronpowell please review this and merge soon

@gidich
Copy link

gidich commented Feb 16, 2024

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

@heruwala
Copy link

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
Copy link

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

@aaronpowell aaronpowell merged commit 8a5b3d0 into apollo-server-integrations:main May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants