Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enums not qualified in include/select #204

Closed
Brendonovich opened this issue Nov 11, 2022 · 2 comments · Fixed by #205
Closed

Enums not qualified in include/select #204

Brendonovich opened this issue Nov 11, 2022 · 2 comments · Fixed by #205
Labels
bug Something isn't working generator

Comments

@Brendonovich
Copy link
Owner

Reported by @JK2Kgit in discord

@Brendonovich Brendonovich added bug Something isn't working generator labels Nov 11, 2022
@Brendonovich Brendonovich added this to the 0.6.4 milestone Nov 11, 2022
@Brendonovich Brendonovich linked a pull request Nov 18, 2022 that will close this issue
@JK2Kgit
Copy link

JK2Kgit commented Dec 30, 2022

Similar issue exists in specta type specyfications for named selects and includes introduced in #216
I think issue is here

ty: <$crate::#module_path::#model_name_snake::select!(@field_type; $field $(#selections_pattern_consume)?) as #specta::Type>::reference(
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
Copy link
Owner Author

Fixed in de2b9a9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working generator
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants