feat(medusa): Apply query transformers to Collection and CustomerGroups (#1667)

This commit is contained in:
Adrien de Peretti
2022-07-02 13:01:52 +02:00
committed by GitHub
parent fee0f88a62
commit e53c06eab8
21 changed files with 200 additions and 206 deletions
@@ -136,7 +136,7 @@ export function prepareRetrieveQuery<
expandRelations = expand.split(",")
}
let expandFields: (keyof TEntity)[] = []
let expandFields: (keyof TEntity)[] | undefined = undefined
if (fields) {
expandFields = fields.split(",") as (keyof TEntity)[]
}