If the resourceIdFieldValue is string, return the expanded resource or null (cannot expand)
If the resourceIdFieldValue is string[], return the expanded resource array, ensure the order is the same as the input, and null for resources cannot expand
If the resourceIdFieldValue is neither string nor string[], throw an error
Give an unknown resourceIdFieldValue, expand the resource data.