In Magento 2, you can add swatch data like color, size, etc. in layered navigation of configurable products. Learn Magento 2 Add Swatch Data in Layered Navigation Aggregations in GraphQL.
Attachment 15502
Let's See Step by Step Guide : https://magecomp.com/blog/magento-2-...ns-in-graphql/