Hi there!
The dataset is not able to filter and the above error is shown. I think it’s because the ._id is being called even before it has a value, but I can’t figure out the mistake. Below is the code. Any help is appreciated!
import wixData from ‘wix-data’;
let path = wixLocation.path;
let name = path[0].toString();
Thanks. @jonatandor35 The issue here is, wixLocation can only be used in the FrontEnd. What I’m trying to do is get the id of the member from a member page, when someone views it (say, profile). Any idea on what’s the best way to do it…?
@wolftechnologiesin use wixLocation in the front end, import the backend module (which you should put in a jsw file) to the front end and call it from there.
But, since the name is getting stuff from the URL, I’m getting an error: wixLocation is not defined. If I import wixLocation to the jsw file, this happens: