Sword Molester
Sword Molester
DTDrizzle Team
Created by Tekipeps on 6/20/2024 in #help
How do I make .returning() return only the inserted value instead of array
Yep
11 replies
DTDrizzle Team
Created by Tekipeps on 6/20/2024 in #help
How do I make .returning() return only the inserted value instead of array
With some sqlite drivers, you can add .get() to the query to specify that it's single or no records returned, that's what I usually do.
11 replies
DTDrizzle Team
Created by Tekipeps on 6/20/2024 in #help
How do I make .returning() return only the inserted value instead of array
I see, values is meant to take in (spread) array inside, so it works as intended, though I agree that it might be not very clear at the first glance.
11 replies
DTDrizzle Team
Created by Tekipeps on 6/20/2024 in #help
How do I make .returning() return only the inserted value instead of array
It returns an array composed only of the records you've inserted in that query, no? If you know that there will be one record, since that is what you're inserting, just return createdResource[0]!
11 replies
DTDrizzle Team
Created by aaliyah ^-^ on 6/3/2024 in #help
i'm trying to migrate my databse
What's the error you're getting? Can't help if I don't know what's breaking to begin with
9 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
As far as I understand the second error might be the reason your schema gets lost in process, since graphql server tries to fetch it from a non-existing source
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
Well, I've managed to finally get that script running, but now I'm getting something else:
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
Oh, don't worry about that, and I prefer tea anyways! If you want to do it anyways though, just go to drizzle team sponsorships
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
Yeah, since entities and schema are in an expected shape, I'd say there's something to this library I don't know about, thanks for the logs, I'll try to fix it ASAP if that's possible.
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
I'll try to set up my own repo using the stack you use if I'll fail to start this one, will message you once I've found anything. For now, can you log what the buildSchema returns in entities? If everything is alright there, I'm going to have to resolve the issue with this particular library it seems.
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
No description
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
That might be the case since I'm using WSL
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
but either way I can't get to the menus that are in your screenshots
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
No description
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
No description
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
May take a while, having trouble getting your repo to work
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
That should work, investigating
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/14/2024 in #help
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
I've never used that tech stack or driver before, got to do further investigation. Could you provide an example of this issue in code format? That would make error reproduction much easier
29 replies
DTDrizzle Team
Created by Tungdayhehe on 5/12/2024 in #help
drizzle-graphql `buildSchema` function doesn't return graphQL schema for PostgreSQL
Yeah, I've just released v0.4.0 of drizzle-graphql, it will now give you a proper error if you're using it with orm of incompatible version, should be easier to debug now.
8 replies
DTDrizzle Team
Created by Tungdayhehe on 5/12/2024 in #help
drizzle-graphql `buildSchema` function doesn't return graphQL schema for PostgreSQL
You mean "updated to version 0.30.10"? And which version were you using prior to that? If it was below 0.30.9, then it's expected behaviour, because I can get proper schema from drizzle instance only with versions 0.30.9 and above.
8 replies