Comments (2)
Correct me if I'm wrong, but you will always get an array of results unless you use .single()
at the end of a query,
i.e
const { data } = await supabase.from("time_off_requests").select(`
id,
user:profiles!profile_id (
id,
name,
avatar_url
),
approver:profiles!approver_id (
id,
name,
avatar_url
)
`).single() // <-------;
https://supabase.com/docs/reference/javascript/single
from supabase-js.
Oh, I'd like an array to be returned for the table I'm querying, but I'd like the approver field on every row to be a single object. The client returns the data just fine but the typescript types don't line up.
from supabase-js.
Related Issues (20)
- Error to Logout - Inconsistent 403 Forbidden HOT 6
- bad_jwt when auth.getUser HOT 1
- auth.getUser returns an error: Auth Session Missing v2.43.2 HOT 12
- React Native IOS Session Refresh HOT 1
- Long running realtime channel results in steady growing memory
- **ToDaY.@~ 750$ fReE CaSh aPp mOnEy gEnErAtOr 2024 WiThOuT AnY VeRiFiCaTiOn [@fT2]
- OfFeR**~@!! 750$ cAsH ApP MoNeY GeNeRaToR 2024 cLaIm yOuRs fReE OnLiNe mOnEy [Xb1]
- !^(eDiTiOn)@~ 750$ fReE-CaSh-aPp-mOnEy-gEnErAtOr 2024 No-hUmAn-vErIfIcAtIoN [7He]
- @~uPdAtEd**~ CaSh-aPp-mOnEy-gEnErAtOr 2024 No vErIfIcAtIoN ClAiM FrEe oNlInE MoNeY [6Jf]
- <yOuR.GuIdEs>! @~ CaSh-aPp-mOnEy-gEnErAtOr-gEt-uNlImItEd-fReE-CaSh-aPp-mOnEy 2024-2025 [#rNk1]
- @~cAsH ApP(LaTeSt.eDiTiOn)** ⚡ FrEe cAsH ApP MoNeY GeNeRaToR 2024-2025 [wItHoUt aNy cOnDiTiOn]-[sD1]
- mEtHoD**@~ $750 cAsH ApP MoNeY GeNeRaToR GeT UnLiMiTeD FrEe cAsH ApP MoNeY 2024-2025 WiThOuT HuMaN VeRiFiCaTiOn [Rs9]
- (GeT)**@~ $750 CaSh aPp mOnEy gEnErAtOr 2024-2025 = wItHoUt aNy vErIfIcAtIoN [4Mk]
- **mEtHoD~!@ $750 CaSh aPp mOnEy - fReE CaSh aPp mOnEy gEnErAtOr 2024-2025 bEsT GuIdEs eVeR [fG2]
- !~lEgIt~!** ⚡ fReE CaSh aPp mOnEy gEnErAtOr 2024-2025_ LeGiT FrEe cAsH ApP MoNeY! [Hj3]
- $950 aVaIlAbLe** cAsH ApP MoNeY GeNeRaToR 2024 FrEe nOw - cAsH ApP MoNeY GeNeRaToR 2024 nO SuRvEy [3lS]
- @~[NeW_CoDeS~]!^ fReE CaSh aPp mOnEy gEnErAtOr 2024-2025 cAsH-ApP-CoDeS-GeNeRaToR [9Kb]
- mAkE**@~[$750]~! FrEe cAsH ApP MoNeY GeNeRaToR 2024/2025~ tOdAy uPdAtEd nO-HuMaN-VeRiFiCaTiOn [Ev4]
- hOw-tO-GeT!**~ 750$ fReE CaSh aPp mOnEy gEnErAtOr 2024 /~ cAsH ApP OnLiNe mOnEy gEnErAtOr [P8N]
- HoW To gEt*^@~ 750$ CaSh aPp gEnErAtOr uNlImItEd mOnEy_nO HuMaN VeRiFiCaTiOn 2024/2025(fReE PrEmIuM TiPs) [%N7]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase-js.