Skip to content

Commit

Permalink
🏷️ add type detail to new model
Browse files Browse the repository at this point in the history
  • Loading branch information
hemedani committed Nov 17, 2023
1 parent 08cb5de commit 5d8d505
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type TRelatedRelation = {
limit?: null | number;
sort?: {
field: string;
order: RelationSortOrderType
order: RelationSortOrderType;
};
};

Expand Down Expand Up @@ -80,6 +80,10 @@ export interface IRelatedRelation {
* name of the main relation related to this relation
*/
mainRelationName: string;
/**
* type of the main relation related to this relation
*/
mainRelationType: RelationDataType;
/**
* type of relation if equal to one: this schema record one object from other schema else
* this schema record array of object from other schema
Expand Down

0 comments on commit 5d8d505

Please sign in to comment.