Steven
03/06/2022, 10:21 AMSteven
03/06/2022, 10:23 AMmodel RandomModel {
id Int @id @default(autoincrement())
point Unsupported("point")?
geometry Unsupported("polygon")?
}
Steven
03/06/2022, 10:25 AMconst records = await context.prisma.$queryRaw<RandomModel[]>`
SELECT
id, updated_at, point::TEXT, geometry::TEXT
FROM
"RandomModel"
${
updatedGte
? Prisma.sql`WHERE updated_at >= ${updatedGte}`
: Prisma.empty
}
${
orderingUpdated
? orderingUpdated === 'asc'
? Prisma.sql`ORDER BY updated_at asc`
: Prisma.sql`ORDER BY updated_at desc`
: Prisma.empty
}
`
janpio
janpio
point
on that side of our code?janpio
Unsupported
(with no Client support) to something new that has some Client support in a specific form, and then give us examples how this would look like (PSL and Prisma Client API) so we can think if this is worth implementing before we get to properly support GIS.janpio
Steven
03/10/2022, 11:19 AMrandomLocation String @Unsupported("point")?
I’ll open a ticket after some thinking..
Business critical filters - I meant the filters such as where/order etc that we are using for this specific project, I can no longer opt-in to using the client to generate these (passed all the way from nexus-prisma), so it’d be nice to have more granular “intercepts” so I can target just to override the selection of fields, but let the client handle the rest. This is a feature in itself thoughjanpio
randomLocation @Unsupported("point") @client.cast/fallback(string)
or something like that)
Btw: Don't go to deep into our implementation details, we can do that when the issue exists and we know what the goals are.Steven
03/10/2022, 12:41 PMjanpio
janpio