skydive icon indicating copy to clipboard operation
skydive copied to clipboard

GraphQL instead of API REST?

Open adrianlzt opened this issue 5 years ago • 0 comments

Maybe could be more interesting to implement a GraphQL API to access the data instead of the REST API.

GraphQL adapts better to the graph database schema, it is self-documented and comes with a UI to access the data, something like swagger: GraphiQL or Graph playground.

GraphQL also supports server push via subscriptions (normally it uses websockets under the hood).

On the other hand, node metadata is not structured, so maybe is hard to handle it with graphql, but maybe nor harder than with an api rest.

adrianlzt avatar May 07 '20 07:05 adrianlzt