Increase limit (default is 25) for shown number of collections in sidepanel

This commit is contained in:
ernstmul committed 2024-10-30 09:39:30 +01:00
1 parent b1ea3ea722
commit ce3f35fcbf
1 file changed
+4 -1
@@ -12,7 +12,10 @@ export const load: LayoutLoad = async ({ params, depends }) => {
try {
const [collection, allCollections] = await Promise.all([
sdk.forProject.databases.getCollection(params.database, params.collection),
sdk.forProject.databases.listCollections(params.database, [Query.orderDesc('')])
sdk.forProject.databases.listCollections(params.database, [
Query.orderDesc(''),
Query.limit(100)
])
]);
return {