Projektarten: Schema-Skript liest alle Attribute (limit 200)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
43c168ab54
commit
4e8b8f1698
1 file changed
+3
-1
@@ -43,7 +43,9 @@ export function createAppwriteClient() {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
async listAttributes() {
|
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 || []
|
return data.attributes || []
|
||||||
},
|
},
|
||||||
async createAttribute({ type, ...body }) {
|
async createAttribute({ type, ...body }) {
|
||||||
|
|||||||
Reference in new issue
Block a user