are there any examples demonstrating a system with...
# prisma-whats-new
p
are there any examples demonstrating a system with
prisma
+
apollo-engine
?
d
When we added
apollo-engine
support to
graphql-yoga
, the contributor created an example of yoga+engine here: https://github.com/playerx/graphql-yoga-sample
It’s not using prisma per se, but is a yoga server
p
Im a bit confused now…are you saying
apollo-engine
is already integrated into
yoga
?
d
Indeed, it is!
💯 1
Copy code
const server = new GraphQLServer({ ... });

    const engine = new Engine({
        engineConfig: { apiKey: process.env.APOLLO_ENGINE_KEY },
        endpoint: '/',
        graphqlPort: parseInt(process.env.Port, 10) || 4000,
    })
    engine.start();

    server.express.use(engine.expressMiddleware());
p
just loaded that in my browser! looks like this is exactly what i was looking for
thank you
👍 1