gatsby-digital-garden
gatsby-digital-garden copied to clipboard
Filter export of Roam Database
Is it possible to have a filter or query option on the fetch-roamresearch package? So that it only pulls selected pages or excludes selected pages?
There are some things in my Roam Graph I don't want to post on the internet. So for example - export all pages with the tag "#published".
Roam doesn't provide that option. But you can filter once you have the content
Hey @larry-llama did you figure out how to filter out the content once you pulled it from Roam? If so, would be happy to get your solution.
https://github.com/houshuang/roam-export has functionality to export only pages with specified tags afaik.
two other export thingies that do filtering: https://github.com/dvargas92495/generate-roam-site-action https://github.com/nikvdp/roam2agora
I've also released the exporting lib I use for https://roam.garden/ to OpenSource see it at https://github.com/roam-garden/roam-export (you may also consider just using Roam Garden 😉)
How might I use graphql filters to achieve this after my json is exported? I'm struggling to find a way to filter for pages that include a given tag. If this isn't the right place to discuss, I can open a new issue