feat: implement collections syncing for selfhosted (#42)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
query ExportUserCollectionsToJSON(
|
||||
$collectionID: ID
|
||||
$collectionType: ReqType!
|
||||
) {
|
||||
exportUserCollectionsToJSON(
|
||||
collectionID: $collectionID
|
||||
collectionType: $collectionType
|
||||
) {
|
||||
collectionType
|
||||
exportedCollection
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user