When exporting a service using the Graphman client, dependencies such as policy fragments and Cluster-Wide Properties (CWP) are not included in the output bundle. This occurs even when the --options.excludeDependencies false flag is applied during the export process.
The serviceByName query in the Graphman client does not support recursive dependency resolution. This query type retrieves only the service entity itself and does not traverse the policy tree to identify or include associated fragments or properties.
Use the service:full query combined with a resolutionPath to ensure all dependencies are resolved and included in the export bundle.
Follow these steps to export a service with its dependencies:
/testService).service:full query:clusterProperties and policies sections for the fragments.