I'm using Server SDK to fetch a list of sessions for a user and got the response as follows: {
response: {
total: 6,
sessions: [ [Object], [Object], [Object], [Object], [Object], [Object] ]
}
}
Where exactly are you seeing this?
Here is my code ```import sdk from "node-appwrite"
if (!process.env.APPWRITE_API_KEY) throw new Error("Provide Appwrite API KEY in local env") // Init SDK const client = new sdk.Client();
client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(process.env.PROJECT_ID) // Your project ID .setKey(process.env.APPWRITE_API_KEY) // Your secret API key ;
const users = new sdk.Users(client); console.log({users}) const promise = users.listSessions('6479f90459eb835c464e');
promise.then(function (response) { console.log({response}); }, function (error) { console.log({error}); }); ```
the console.log({response}) return this
Maybe it's not recursively expanding. Ive noticed sometimes the browser logs lazy loads some nested data and after a while the nested data is no longer available
You can stringify it if you want
That's good to know thank you!
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...