Access database

My Id column in the database is locked, but I would like to access the user’s information via their id. I have tried using the query below:

wixData.query(“Members”).eq(“_id”, userId).find()

This is however returning a result of zero. Is this happening because the ID column is locked? Is there any way I can access the user’s information?

Thank you,

Have a good read of the Wix Data API and the query function.
https://www.wix.com/corvid/reference/wix-data.html#query

//rest of code above
wixData.query("Members")
.eq("_id", userId)
.find();
} )
.then( (results) => {
//rest of code below