Browse Source

refactor(core): Make custom field inverseSide optional

Michael Bromley 2 years ago
parent
commit
cd093ae8b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/config/custom-field/custom-field-types.ts

+ 1 - 1
packages/core/src/config/custom-field/custom-field-types.ts

@@ -100,7 +100,7 @@ export type RelationCustomFieldConfig = TypedCustomFieldConfig<
     entity: Type<VendureEntity>;
     graphQLType?: string;
     eager?: boolean;
-    inverseSide: string | ((object: VendureEntity) => any);
+    inverseSide?: string | ((object: VendureEntity) => any);
 };
 
 /**