feat: implement collections syncing for selfhosted (#42)

This commit is contained in:
Akash K
2023-04-01 17:22:42 +05:30
committed by GitHub
parent 9d7509b4dd
commit 86a12e2d28
38 changed files with 4190 additions and 27 deletions

View File

@@ -0,0 +1,12 @@
query ExportUserCollectionsToJSON(
$collectionID: ID
$collectionType: ReqType!
) {
exportUserCollectionsToJSON(
collectionID: $collectionID
collectionType: $collectionType
) {
collectionType
exportedCollection
}
}

View File

@@ -0,0 +1,13 @@
query GetGQLRootUserCollections {
# the frontend doesnt paginate right now, so giving take a big enough value to get all collections at once
rootGQLUserCollections(take: 99999) {
id
title
type
childrenGQL {
id
title
type
}
}
}

View File

@@ -0,0 +1,13 @@
query GetUserRootCollections {
# the frontend doesnt paginate right now, so giving take a big enough value to get all collections at once
rootRESTUserCollections(take: 99999) {
id
title
type
childrenREST {
id
title
type
}
}
}