-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
So in a perfect world all models come from the same microservice, this would of course in the real world be a utopia.
In my case, I have a dedicated API Gateway (lets say https://graph.nao.com) and I have multiple microservices containing my model information. Lets say microservice A and B, which their urls being:
- A :
https://graph.nao.com/a/v1/* - B :
https://graph.nao.com/b/v1/*
Now, I have a model on the first microservice, and one on the second. They share authentication, and are related to each other. Is this something we can support by means of:
@Model({namespace: 'a'})
export class ModelOnA extends Resource {
@Field()
public id: number;
@Field()
public name: string;
@ToMany(ModelOnB):
public tasks: ToManyRelation<ModelOnA, ModelOnB>;
}
@Model({namespace: 'b'})
export class ModelOnB extends Resource {
@Field()
public id: number;
@Field()
public name: string;
@ToMany(ModelOnA):
public tasks: ToManyRelation<ModelOnB, ModelOnA>;
}A few things need to be done here:
- Support namespaces
- Support relationships between namespaces
Metadata
Metadata
Assignees
Labels
No labels