chore: remove image nodes that point to nothing

- remove their relationships to posts/users as well
This commit is contained in:
mattwr18 2020-03-26 19:01:09 +01:00
parent cedd0ac9e8
commit ff348fdd5c

View File

@ -30,7 +30,7 @@ export async function up(next) {
`
MATCH(image:Image)
WHERE image.url IN $danglingUrls
REMOVE image.url
DETACH DELETE image
`,
{ danglingUrls },
)