gatsby-digital-garden icon indicating copy to clipboard operation
gatsby-digital-garden copied to clipboard

Filter export of Roam Database

Open larry-llama opened this issue 5 years ago • 6 comments

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".

larry-llama avatar Jul 26 '20 11:07 larry-llama

Roam doesn't provide that option. But you can filter once you have the content

mathieudutour avatar Jul 26 '20 13:07 mathieudutour

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.

AntoineButeau avatar Nov 29 '20 00:11 AntoineButeau

https://github.com/houshuang/roam-export has functionality to export only pages with specified tags afaik.

Stvad avatar Dec 26 '20 21:12 Stvad

two other export thingies that do filtering: https://github.com/dvargas92495/generate-roam-site-action https://github.com/nikvdp/roam2agora

Stvad avatar Dec 31 '20 01:12 Stvad

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 😉)

Stvad avatar Mar 18 '21 18:03 Stvad

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

devinhalladay avatar Oct 02 '21 00:10 devinhalladay