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
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- Console display all Databases as TablesD...
While looking at an issue with <@1231860789355347971> we saw that the console was displaying ALL databases as `TablesDB` even if the real type in the API is `le...
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...