[Introspection] No id field defined!
See original GitHub issueI’m encontering this issue when instropecting a prisma1 schema on Postgres, please see Report Id 1416.
Version
prisma2@2.0.0-alpha.648, binary version: 43dc93afaf4961d9a083741b3cdbd379748389d6
Error
Schema parsing
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "No id field defined! Model: PrimaryMeetAndGreetOperatorOnAirport"', src/libcore/result.rs:1165:5
stack backtrace:
This is the model being referenced
model PrimaryMeetAndGreetOperatorOnAirport {
A Airport @relation("AirportTo_PrimaryMeetAndGreetOperatorOnAirport")
B MeetAndGreetOperator @relation("MeetAndGreetOperatorTo_PrimaryMeetAndGreetOperatorOnAirport")
@@map("_PrimaryMeetAndGreetOperatorOnAirport")
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Introspection - GraphQL
id looks a bit weird there, it has no name for the type. That's because it's a "wrapper" type of kind NON_NULL ....
Read more >What is introspection? (Reference) - Prisma
Introspection lists model fields in the same order as the corresponding table columns in the database. Order of attributes. Introspection adds attributes in...
Read more >Introspection: Definition, Uses, Examples, and Tips
Introspection is a psychological process that involves looking inward to examine one's own thoughts, emotions, judgments, and perceptions. In ...
Read more >Apollo Federation subgraph specification
Automatically extend its schema with all definitions listed in Subgraph schema additions; Correctly resolve the Query._service enhanced introspection field ...
Read more >graphql Error: Introspection must provide input type for ...
Error: Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was ...
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
As this is now a separate issue I think we can close this and Ill create another 😃
Version:
prisma2@2.0.0-alpha.798, binary version: d20d1e6b1525ae45e3cc39784ad16c97d463f61c
prisma2 introspect
Worksprisma2 generate
Worksprisma2 migrate save --experimental
Worksprisma2 migrate up --experimental
⚠️ There will be data loss