
Hello, I am experiencing problems with bulk inserts.
I have a node-appwrite client created like this
` const client = new ServerClient() .setEndpoint(APPWRITE_ENDPOINT!) .setProject(APPWRITE_PROJECT_ID!);
if (jwt) { client.setJWT(jwt); } // const adminClient = getServerAdminClient(jwt);
const accountApi = new ServerAccount(client); const result = { client, databases: new ServerDatabases(client), tables: new ServerTablesDB(client), account: accountApi, }; await appInjection.registerRequestData({ userClient: result }); return result;
`
and then the following code:
`const { tables } = client
await tables.createRow({
databaseId,
tableId: collectionId,
rowId: ID.unique(),
data: toSave[0],
});
await tables.createRows({
databaseId,
tableId: collectionId,
rows: toSave,
});
results.success += batch.length;`
The createRow works, the createRows doesnt, I get this error:
The current user or API key does not have the required scopes to access the requested resource.
What am I doing wrong?

Bulk inserts
Recommended threads
- Query for does not contain?
Is there a way to query documents where a list attribute does not contain an item?
- Adding users to a team. HELP ME OUT. 🙏
So i am building a online Education platform. Teachers have a register page. I have a "teachers" team in auth and a "teacher_profile" database for storing profi...
- Something is wrong with bulk update docu...
1 - Create a collection with attributes A and B, set B as non required with a default value 2 - Create some documents with data value for A and B 3 - Call upda...
