Skip to content

Commit 673e427

Browse files
author
Alexei Pastuchov
committed
the structs New{Comment,Post,User} shouldn't provide id parameter
1 parent b01985a commit 673e427

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

wundergraph_cli/src/print_schema/snapshots/tests__main.snap

-3
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ wundergraph::query_object!{
8686
#[graphql(scalar = "WundergraphScalarValue")]
8787
#[table_name = "comments"]
8888
pub struct NewComment {
89-
id: i32,
9089
post: Option<i32>,
9190
commenter: Option<i32>,
9291
content: String,
@@ -107,7 +106,6 @@ pub struct CommentChangeset {
107106
#[graphql(scalar = "WundergraphScalarValue")]
108107
#[table_name = "posts"]
109108
pub struct NewPost {
110-
id: i32,
111109
author: Option<i32>,
112110
title: String,
113111
datetime: Option<chrono::naive::NaiveDateTime>,
@@ -130,7 +128,6 @@ pub struct PostChangeset {
130128
#[graphql(scalar = "WundergraphScalarValue")]
131129
#[table_name = "users"]
132130
pub struct NewUser {
133-
id: i32,
134131
name: String,
135132
}
136133

0 commit comments

Comments
 (0)