Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wundegraph_cli doesn't catch missed not auto increment primary key in struct derive GraphQLInputObject #55

Open
p-alik opened this issue Jul 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@p-alik
Copy link
Contributor

p-alik commented Jul 25, 2020

As mentioned in #3 CI bench checks run faultless despite the struct

#[derive(Insertable, GraphQLInputObject, Clone, Debug, Copy)]
#[table_name = "film_actor"]
pub struct NewFilmActor {
last_update: NaiveDateTime,
}
doesn't contain two fields, which are set as primary key for the table
#[table_name = "film_actor"]
#[primary_key(actor_id, film_id)]
pub struct FilmActor {
actor_id: i16,
film_id: i16,
last_update: NaiveDateTime,
}

@p-alik p-alik mentioned this issue Jul 25, 2020
7 tasks
@weiznich weiznich added the bug Something isn't working label Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants