Passing variable into regex In Gatsby graphql query
I ended up splitting the tags into an array, then using the following to filter:
filter: { fields: { tags: { in: [$tag] } } }
I ended up splitting the tags into an array, then using the following to filter:
filter: { fields: { tags: { in: [$tag] } } }