In the case of a micro-services developed app, each service (= model) has it's own REST API, i.e:
- People
- Companies
Those models can have relationships together (i.e: Person "X" is working at Company "Y").
I would like to know if it exists a JS ORM or framework handling REST APIs as drivers (like a MySQL driver but done with REST) and managing the REST API calls by itself.
If I fetch a "Person" which has a data field relation "is_working_at" type: @Company, the ORM is doing the REST API call to the Companies API in order to fetch the Company data associated with this Person and populate the "is_working_at" field.
Thanks a lot.