Is Facebook's graphical API using GraphQL?

They said Facebook has been using GraphLQ since 2012. Is the Facebook Graph Graph API? If not, is there any public Facebook API using GraphQL?

Do we need to control versions for our APIs if we use GraphQL server?

+9
source share
1 answer

Daniel Schafer of Facebook noted at the GraphQL Europe conference that the GraphQL Facebook API API is not available to the public. (Not to be confused with their graph API).

Their GraphQL API provides data for all Facebook applications today (Android, iOS, etc.), and I don’t think Facebook has any plans to make this particular API public.

They can make their Graph API available in GraphQL at some point.

However, if you want to play around with the GraphQL public API, you can find it here: https://github.com/APIs-guru/graphql-apis/blob/master/README.md

Moreover, if you want to play with the GraphQL API setting, you can try Apollo's Launchpad: https://launchpad.graphql.com

About versions: if you add functions to your API, you do not need its version. However, if you drastically change the data output, for example, by excluding the fields, and your clients will depend on you, you probably need a version of the GraphQL API. Try to avoid this pattern.

Think of GraphQL as a client development tool. If you have active clients using fields, do not remove them from the API until all clients are updated to use some other fields. Find out more about the REST versus GraphQL version here: https://www.symfony.fi/entry/versioning-an-api-in-graphql-vs-rest

+17
source

Source: https://habr.com/ru/post/1265356/


All Articles