Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.84k stars 108 forks source link

Enums not qualified in include/select #204

Closed Brendonovich closed 1 year ago

Brendonovich commented 1 year ago

Reported by @jk2kgit in discord

JK2Kgit commented 1 year ago

Similar issue exists in specta type specyfications for named selects and includes introduced in #216 I think issue is here https://github.com/Brendonovich/prisma-client-rust/blob/d6fc49d72c2c442e0b084935866a8e7336940a9c/cli/src/generator/models/select.rs#L229 but i can't figure out why example.zip - smallest example i managed reproduce

And after manually expanding macro here is the error

200 | ...me: "EnumValue".to_string(), optional: false, ty: <TestEnum as prisma_client_rust::rspc::internal::specta::Type>::reference(prisma_cli...
    |                                                       ^^^^^^^^ not found in this scope
Brendonovich commented 1 year ago

Fixed in de2b9a96370948cf15df29c96b7c9730e7382002