3PillarGlobal-Czechia / interview-app-api

API for Interview App.
MIT License
3 stars 1 forks source link

Question: How to use GraphQL with clean architecture #19

Closed PlesnikJakub closed 2 years ago

PlesnikJakub commented 2 years ago

Hi @petrspelos, during some investigation, I noticed it may be easier for frontend implementation to use GraphQL instead of standard rest. At least for querying it does make sense in some way.

The question is how would such implementation look like if it is even possible to go this way without going against clean architecture principles.

PlesnikJakub commented 2 years ago

https://github.com/graphql-dotnet/graphql-dotnet

PlesnikJakub commented 2 years ago

@petrspelos

petrspelos commented 2 years ago

The WebAPI project is, in the end, an implementation detail. If we want to use GraphQL instead of standard REST, we can have a Presenter for that technology for sure.

PlesnikJakub commented 2 years ago

Ok, lets close this one and open one for implementation, we will do it as an experiment and we will see if that will go to production or not.