title: Can I use GraphQL for mongoDB or mySQL?
body: <p>I have started learning GraphQL and found that GraphQL is an awesome query language.<br />
  However I wonder if I can use GraphQL for existing databases such as mongoDB or mySQL.</p>
  <p>Also please explain about prisma.
  Is prisma a cloud database or something?</p>
  <p><strong>Edit:</strong></p>
  <p><strong>TL;DR:</strong>
  GraphQL can be used with any database as long as the data satisfies the type-strict qualification. Prisma is a node.js/typescript ORM library and works great with GraphQL.</p>
  <p>Looking back to this a bit old question, I noticed that the question was so dumb and a bit too wide. So I've decided to add some more thoughts as I'm now quite familiar with GraphQL and Prisma. Hope this could be a help for new developers who are starting to learn GraphQL and Prisma.</p>
  <p><strong>GraphQL</strong> is a query language that we can use to interact with the API.<br />
  Like the REST API, GraphQL is another type of API format where we can use Queries to get data and Mutations to update data.<br />
  As the REST API doesn't depend on the database type, GraphQL can also be used with any database as long as the data can be formatted into type-strict models.</p>
  <p>On the backend side tho, you need to implement the GraphQL interface that <strong>reads</strong> data from the database and sends as the <strong>Query</strong> response, and <strong>updates</strong> the database with the data from the <strong>Mutation</strong>.</p>
  <p><strong>Prisma</strong> on the other hand is a node.js/typescript ORM library - similar to mongoose or sequelize. The benefits of using Prisma is that it auto-generates the TS models and makes it much easier to interact with the database in typescript.</p>
  <p>As GraphQL and Prisma are both strict in type usages, they match quite well. Also, Prisma provides an exclusive interface for GraphQL implementation, so you can easily write GraphQL interface with Prisma.</p>
  <p>Please check out here for more information on the combination of GraphQL and Prisma: <a href="https://www.prisma.io/graphql" rel="nofollow noreferrer">https://www.prisma.io/graphql</a></p>
  <p>It was a long edit, but hope this helps.</p>