Graphql Svg String is a Statamic addon that adds a field svgString
to an AssetInterface
, which – you guessed it – returns the SVG as a string.
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
composer require el-schneider/graphql-svg-string