We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a008075 commit 6c70d55Copy full SHA for 6c70d55
wundergraph_cli/src/print_schema/print_helper.rs
@@ -475,7 +475,16 @@ impl<'a> Display for GraphqlInsertable<'a> {
475
{
476
let mut out = PadAdapter::new(f);
477
writeln!(out)?;
478
- for c in self.table.column_data.iter().filter(|c| !c.has_default) {
+ for c in self.table.column_data.iter().filter(|c| {
479
+ !c.has_default
480
+ && self
481
+ .table
482
+ .primary_key
483
+ .iter()
484
+ .filter(|x| **x == c.sql_name)
485
+ .count()
486
+ == 0
487
+ }) {
488
let t = GraphqlType {
489
sql_type: &c.ty,
490
allow_option: true,
0 commit comments