INNER JOIN postmeta ON (posts.ID = postmeta.post_id)
//Не знаю синтаксиса, так примерно как я представляю)
INNER JOIN if(postmeta.meta_key = 'post_rating' ) SUM(postmeta.meta_value * ... и.т.д ... AS rating
ON (posts.ID = postmeta.post_id)
Unhandled promise rejection: TypeError: undefined is not an object (evaluating '_this.parsed.map')
const user_data = AsyncStorage.getItem('user_data').then(function(value) {
let parse = JSON.parse(value);
return parse;
});
AsyncStorage.getItem('user_data').then(function(value) {
let parse = JSON.parse(value);
console.log(parse);
});
Promise {
"_U": 0,
"_V": 0,
"_W": null,
"_X": null,
}