can I use `graphcool add-template messaging/mailgu...
# prisma-whats-new
s
can I use
graphcool add-template messaging/mailgun
with Prisma?
c
AFAIK, you cannot. Prisma has its own command line utility
s
thanks for the reply. What does it involve to adapt graphcool template to Prisma?
Can I convert somehow graphcool template to use with Prisma?
c
No, prisma and graphcool are two different things and serve different purposes. I don't think there is a concept of templates on Prisma but let's wait until somebody official comments here
n
@callmekatootie is correct 🙂 what template are you interested in? it should be straightforward to adapt it to a resolver.
s
I was looking to adapt a mailgun template
btw, @nilan and @callmekatootie thank you for paying attention to my post! Very nice!
👍 1
n
You can adapt [this code](https://github.com/graphcool/templates/blob/master/messaging/mailgun/src/sendEmail.ts) into a new resolver in the GraphQL Server in front of Prisma.
s
I wish I had a better grasp of Prisma. I just do not know where to start the adaptation 🙂
c
Start off with this - https://www.howtographql.com/graphql-js/1-getting-started/. Brought me up to speed with what prisma really is and how useful it can be
s
I am familiar with graphql. I just do not understand how to hook graphcool mailgun template with prisma resolvers.
c
that tutorial is more for prisma
n
I just do not understand how to hook graphcool mailgun template with prisma resolvers.
You manually copy paste code around, and adjust it accordingly 😉
s
Thank you. I will try it