Projektarten: Schema-Skript liest alle Attribute (limit 200)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-09-30 18:33:21 +00:00
1 parent 43c168ab54
commit 4e8b8f1698
1 file changed
+3 -1
+3 -1
View File
@@ -43,7 +43,9 @@ export function createAppwriteClient() {
return {
async listAttributes() {
const data = await aw('/attributes')
// Ohne limit liefert Appwrite nur 25 Attribute - die Sammlung hat mehr
const q = encodeURIComponent(JSON.stringify({ method: 'limit', values: [200] }))
const data = await aw(`/attributes?queries[]=${q}`)
return data.attributes || []
},
async createAttribute({ type, ...body }) {