johncmacy
Explore posts from serversDTDrizzle Team
•Created by johncmacy on 4/14/2025 in #help
Query to include parent with child infers types as `never`
Hello,
In my schema, I have a self-referential foreign key set up:
I'm trying to select the parent with the child like this:
However, the inferred type of
accounts
is:
1 replies
Error: Option apiKey is required in Remix loader
Hello, I've been trying to query from Xata in a Remix loader, and am getting this error.
I'm aware that queries should only be run on the server, but from what I understand, Remix loaders only run on the server, so I don't think that's the issue.
I found a workaround, which is to manually add
apiKey
and branch
to the XataClient
instance that is generated by the CLI.
But that means I have to manually do that every time I update the schema. Is there something obvious I'm missing?
Thanks!5 replies