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 f74b50cCopy full SHA for f74b50c
wundergraph_cli/src/print_schema/print_helper.rs
@@ -475,7 +475,7 @@ 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| !c.has_default && self.table.primary_key.iter().filter(|x| **x == c.sql_name).count() == 0) {
479
let t = GraphqlType {
480
sql_type: &c.ty,
481
allow_option: true,
0 commit comments