简体   繁体   中英

Difference between Graph API and GraphQL

Cosmos DB中的Microsoft Azure Graph API与FaceBook提供的GraphQL之间有区别吗?

They are two very different things even though they share the keywords "graph" in them.

  1. CosmosDB Graph API is a query language to manage and query "CosmosDB graph database". Graph database unlike traditional databases, store information in the form of a graph (ie, vertices and edges).

  2. GraphQL on the other hand is a query language for a user API. Let's say that you have a build stack (the underlying platform could be anything) that has a REST endpoint. However the rest APIs typically are simple and do not let you specify complex filtering conditions. GraphQL is a way (or replacement to tradition REST API) by which the developer of the stack can allow clients to avail these complex functionalities.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM