func TransformCompiledFilter(root *expr.Expression, resourceType *spec.ResourceType) (bson.D, error) {
	return newTransformer(resourceType).transform(root)
}
Compile and transform a compiled SCIM filter to bsonx.Val that contains the original
filter in MongoDB compatible format. This slight optimization allow the caller to pre-compile
frequently used queries and save the trip to the filter parser and compiler.
package v2
import (
	"fmt"
	"github.com/imulab/go-scim/pkg/v2/crud/expr"
	"github.com/imulab/go-scim/pkg/v2/spec"
	"go.mongodb.org/mongo-driver/bson"
	"go.mongodb.org/mongo-driver/bson/primitive"
	"strconv"
	"strings"
	"time"
)
func TransformFilter(scimFilter string, resourceType *spec.ResourceType) (bson.D, error) {
	root, err := expr.CompileFilter(scimFilter)
	if err != nil {
		return nil, err
	}
	return TransformCompiledFilter(root, resourceType)
}