im trying to subscribe only to user related documents. Document security is enabled. But I get any updates.
I recive also documents from other user
nextjs:
const { client } = getClientSideServices();
return client.subscribe(
`databases.${appwriteConfig.databaseId}.collections.${collectionId}.documents`,
(response) => {
console.log('Events get for :', collectionId, response);
callback(response);
}
);
and
export function getClientSideServices() {
const client = new Client()
.setEndpoint(appwriteConfig.endpoint)
.setProject(appwriteConfig.projectId);
const sessionCookie = getCookie('session');
if (sessionCookie) {
console.log('Session-Cookie found, last Session:', sessionCookie.substring(0, 10) + '...');
client.setSession(sessionCookie);
} else {
console.warn('No Session-Cookie found!');
}
return {
account: new Account(client),
databases: new Databases(client),
storage: new Storage(client),
teams: new Teams(client),
client,
};
}
permissions on collection settings:
permissions on document settings:
I followed also this tutorial. It doesnt helped
I checked also dev tools on browser. the user is null. Is that the reason? If yes, how can we fix it?
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...