Strapi: GraphQL vs. MongoDB? Difference?

Created on 21 May 2018  路  1Comment  路  Source: strapi/strapi

Hi guys, what is the difference between GraphQL and MongoDB? If I understand well - there are two separate storages, but why do we need them both? Why not use only MongoDB? Or maybe GraphQL is the way to communicate with MongoDB? What are good and bad sides for both? In what case should I use witch?

Most helpful comment

@madonzy it would prob be better to discuss this on the slack. GraphQL is an API query system (think REST API) MongoDB is a storage system, similar to MySQL and Postgres (Strapi supports all 3)

Strapi offers both a Rest API and a GraphQL interface.
The same applies to storage; MongoDB, MySQL, and Postgres.

I would suggest you read up on these technologies to understand what you need.

@lauriejim we can probably close out this to continue further discussion on slack.

>All comments

@madonzy it would prob be better to discuss this on the slack. GraphQL is an API query system (think REST API) MongoDB is a storage system, similar to MySQL and Postgres (Strapi supports all 3)

Strapi offers both a Rest API and a GraphQL interface.
The same applies to storage; MongoDB, MySQL, and Postgres.

I would suggest you read up on these technologies to understand what you need.

@lauriejim we can probably close out this to continue further discussion on slack.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rashidul420222 picture Rashidul420222  路  3Comments

wes-cutting picture wes-cutting  路  3Comments

dufoli picture dufoli  路  3Comments

OrestTs picture OrestTs  路  3Comments

shash7 picture shash7  路  3Comments