mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-01-02 01:44:25 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efb9e5d9d5 |
@@ -2266,14 +2266,14 @@ func filterExtendedOptions(validator *common.ColumnValidator, options ExtendedRe
|
|||||||
filtered.ComputedQL = options.ComputedQL
|
filtered.ComputedQL = options.ComputedQL
|
||||||
|
|
||||||
// Filter Expand columns
|
// Filter Expand columns
|
||||||
filteredExpands := make([]ExpandOption, 0, len(options.Expand))
|
// filteredExpands := make([]ExpandOption, 0, len(options.Expand))
|
||||||
for _, expand := range options.Expand {
|
// for _, expand := range options.Expand {
|
||||||
filteredExpand := expand
|
// filteredExpand := expand
|
||||||
// Don't validate relation name, only columns
|
// // Don't validate relation name, only columns
|
||||||
filteredExpand.Columns = validator.FilterValidColumns(expand.Columns)
|
// filteredExpand.Columns = validator.FilterValidColumns(expand.Columns)
|
||||||
filteredExpands = append(filteredExpands, filteredExpand)
|
// filteredExpands = append(filteredExpands, filteredExpand)
|
||||||
}
|
// }
|
||||||
filtered.Expand = filteredExpands
|
// filtered.Expand = filteredExpands
|
||||||
|
|
||||||
return filtered
|
return filtered
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user