Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { ApolloServer } = require("apollo-server-cloudflare");
const gql = String.raw;
const server = new ApolloServer({
typeDefs: gql`
type Query {
hello: String!
}
`,
resolvers: {
Query: {
hello: () => "world",
},
},
});
server.listen().then(({ url }) => console.log(`Server ready!`));