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
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...
- Does 1.9.0 Self Hosted have MongoDB Atla...
I have been playing with the new 1.9.0 update and I am really excited for the MongoDB support. I wanted to ask though if at the current time Appwrite supports b...