[Introspection] Panic: Unable to resolve scalar field / @@unique does not work with non-scalar fields
See original GitHub issueIntrospection error message might look like:
Schema parsing
thread 'main' panicked at 'Unable to resolve scalar field 'A'', src/libcore/option.rs:1185:5
stack backtrace:
0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
1: core::fmt::write
...
Example schema where it happens: https://github.com/prisma/database-schema-examples/blob/master/mysql/sakila/schema.sql
Introspection Analysis Pattern Description:
Panic: Model (probably) has a @@id or @@unique, that refers to a non-scalar field. This usually happens in table inheritance and join tables without IDs.
More details in the internal introspection analysis repository, look for the known pattern: panic-unable-to-resolve-scalar-field
This problem can also appear if you write your schema by hand or used introspection to create it before: https://github.com/prisma/prisma2/issues/1534
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:18 (11 by maintainers)
Top Results From Across the Web
Filter on non-scalar fields or relations (Types) - GraphQL
Query with @filter on a list/non-scalar objects at root level ... I have tried thinking of how a filter directive might solve the...
Read more >FlatBuffers: Tutorial - Google
We will step through a simple example application, which shows you how to: Write a FlatBuffer schema file. Use the flatc FlatBuffer compiler....
Read more >Why Do I Get This Error for This Non-scalar Structure?
All of the field data concatenated together, or places into another container array (e.g. a cell array), or something else? So far you...
Read more >linear hyperbolic equations: Topics by Science.gov
Extended Thermodynamics: a Theory of Symmetric Hyperbolic Field Equations ... This model can contribute significantly to solve the nonlinear problem and at ...
Read more >Quantum Simulation of Spin-1 Physics with Bosons in ... - MIT RLE
notion of a non-scalar polarizability at a more intuitive level. This chapter is helpful for understanding how a state-dependent optical lattice works.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is now fixed ❤️
@janpio @tomhoule Thanks so much :bowtie: