elliott
03/07/2022, 2:50 AMconst { data: mutualReviews, error: mutualError } = await supabase
.from('reviews')
.select('score, text, profiles!inner(*)')
.eq('video_id', id)
.neq('user_id', user.id)
.in('profiles.twitter_handle', profile.twitter_follows)
.contains('profiles.twitter_follows', [profile.twitter_handle])
const { data: followsReviews, error: followsError } = await supabase
.from('reviews')
.select('score, text, profiles!inner(*)')
.eq('video_id', id)
.neq('user_id', user.id)
.in('profiles.twitter_handle', profile.twitter_follows)
.not('profiles.twitter_follows', 'contains', [profile.twitter_handle])
The only differentiating line is the final one, contains vs not. In this context not does not work at all. I think that maybe it only works for 'eq'?garyaustin
03/07/2022, 2:56 AMgaryaustin
03/07/2022, 2:58 AMelliott
03/07/2022, 3:00 AMelliott
03/07/2022, 3:00 AMgaryaustin
03/07/2022, 4:55 AMelliott
03/07/2022, 5:28 AMelliott
03/07/2022, 5:29 AM.not('profiles.twitter_follows', 'cs', profile.twitter_handle)
elliott
03/07/2022, 5:29 AMelliott
03/07/2022, 5:29 AM%7D
trick on 'profiles.twitter_follows'
which is an array on the left?elliott
03/07/2022, 5:29 AMgaryaustin
03/07/2022, 5:32 AMelliott
03/07/2022, 5:33 AMelliott
03/07/2022, 5:33 AMelliott
03/07/2022, 5:33 AMgaryaustin
03/07/2022, 5:34 AMelliott
03/07/2022, 5:34 AMelliott
03/07/2022, 5:34 AMelliott
03/07/2022, 5:34 AMgaryaustin
03/07/2022, 5:35 AMgaryaustin
03/07/2022, 5:35 AMelliott
03/07/2022, 5:35 AMgaryaustin
03/07/2022, 5:35 AMelliott
03/07/2022, 5:35 AMelliott
03/07/2022, 5:38 AMelliott
03/07/2022, 5:38 AM