feat(*): Modules export entities and fields (#5242)

This commit is contained in:
Carlos R. L. Rodrigues
2023-10-03 14:20:43 -07:00
committed by GitHub
parent eeceec791c
commit 130cbc1f43
27 changed files with 801 additions and 226 deletions
+6 -2
View File
@@ -133,6 +133,10 @@ export type ModuleJoinerConfig = Omit<
JoinerServiceConfig,
"serviceName" | "primaryKeys" | "relationships" | "extends"
> & {
/**
* GraphQL schema for the all module's available entities and fields
*/
schema?: string
relationships?: ModuleJoinerRelationship[]
extends?: {
serviceName: string
@@ -153,9 +157,9 @@ export type ModuleJoinerConfig = Omit<
*/
isLink?: boolean
/**
* Keys that can be used to link to other modules
* Keys that can be used to link to other modules. e.g { product_id: "Product" } "Product" being the entity it refers to
*/
linkableKeys?: string[]
linkableKeys?: Record<string, string>
/**
* If true it expands a RemoteQuery property but doesn't create a pivot table
*/