|
|
@@ -48,7 +48,10 @@ export class CollectionResolver {
|
|
|
async collections(
|
|
|
@Ctx() ctx: RequestContext,
|
|
|
@Args() args: QueryCollectionsArgs,
|
|
|
- @Relations({ entity: Collection, omit: ['productVariants', 'assets'] })
|
|
|
+ @Relations({
|
|
|
+ entity: Collection,
|
|
|
+ omit: ['productVariants', 'assets', 'parent.productVariants', 'children.productVariants'],
|
|
|
+ })
|
|
|
relations: RelationPaths<Collection>,
|
|
|
): Promise<PaginatedList<Translated<Collection>>> {
|
|
|
return this.collectionService.findAll(ctx, args.options || undefined, relations).then(res => {
|
|
|
@@ -62,7 +65,10 @@ export class CollectionResolver {
|
|
|
async collection(
|
|
|
@Ctx() ctx: RequestContext,
|
|
|
@Args() args: QueryCollectionArgs,
|
|
|
- @Relations({ entity: Collection, omit: ['productVariants', 'assets'] })
|
|
|
+ @Relations({
|
|
|
+ entity: Collection,
|
|
|
+ omit: ['productVariants', 'assets', 'parent.productVariants', 'children.productVariants'],
|
|
|
+ })
|
|
|
relations: RelationPaths<Collection>,
|
|
|
): Promise<Translated<Collection> | undefined> {
|
|
|
let collection: Translated<Collection> | undefined;
|