React连接Back4App数据库时出现Invalid JSON控制台错误
React连接Back4App数据库时出现Invalid JSON错误
我正在开发React应用,需要连接Back4App数据库。已经在Back4App控制台创建了Person类,且该类中存在符合查询条件的数据,但发起查询请求后,开发者控制台抛出了Invalid JSON错误。我已经确认Parse初始化步骤是正确的,问题不在这个环节。
错误截图:
我的查询代码如下:
export async function fetchUser() { // create your Parse Query using the Person Class you've created const query = new Parse.Query('Person'); // use the equalTo filter to look for user which the name is John query.equalTo('name', 'Jakob'); // run the query const user = await query.first(); return user; }
恳请各位帮忙排查问题,非常感谢!
内容的提问来源于stack exchange,提问作者Jakob B
相关产品推荐
相关产品推荐

