Scai
Scai
Explore posts from servers
FFilament
Created by Scai on 9/18/2024 in #❓┊help
How to use external JS libs from node_modules into Filament?
We have a open-source project were we want to translate our entire UI to Filament. We need to import some libs from external dependencies on our pages from node_modules which aren't available through CDN's. We are using Vite in our setup.
2 replies
FFilament
Created by Scai on 4/13/2024 in #❓┊help
Table rendering in another resource tab
No description
1 replies
FFilament
Created by Scai on 4/12/2024 in #❓┊help
Enable registration on no users table
I want to enable register when there aren't users registered on the application, that would be it's the first admin, and after that to disable it.
8 replies
DTDrizzle Team
Created by Scai on 10/28/2023 in #help
Query only one item from Many-To-Many
I would like only to take one stat not all the arrays. Is there a method to replace limit with something which returns only one item.
const res = await ctx.db.query.servers.findMany({
with: {
game: true,
stat: {
limit: 1,
orderBy: (table, { desc }) => [desc(table.statId)],
with: {
stat: true,
},
},
},
});
const res = await ctx.db.query.servers.findMany({
with: {
game: true,
stat: {
limit: 1,
orderBy: (table, { desc }) => [desc(table.statId)],
with: {
stat: true,
},
},
},
});
21 replies
DTDrizzle Team
Created by Scai on 10/28/2023 in #help
Error on db:push
Incorrect table definition; there can be only one auto column and it must be defined as a key
3 replies