Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /opt/devel/rust/wundergraph/wundergraph_example [issue-3|…1⚑ 1]
- 11:49 $ cargo build --no-default-features --features mysql
- Compiling wundergraph v0.1.2 (/opt/devel/rust/wundergraph/wundergraph)
- Compiling wundergraph_example v0.1.0 (/opt/devel/rust/wundergraph/wundergraph_example)
- error[E0271]: type mismatch resolving `<(wundergraph_example::friends::columns::hero_id, wundergraph_example::friends::columns::friend_id) as diesel::expression::Expression>::SqlType == diesel::sql_types::Integer`
- --> wundergraph_example/src/bin/main.rs:57:5
- |
- 57| schema: Arc<Schema<MyContext<DBConnection>>>,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `diesel::sql_types::Integer`
- |
- = note: expected type `(diesel::sql_types::Integer, diesel::sql_types::Integer)`
- found type `diesel::sql_types::Integer`
- = note: required because of the requirements on the impl of `wundergraph::query_builder::mutations::insert::HandleInsert<wundergraph_example::Friend, wundergraph_example::mutations::NewFriend, diesel::mysql::backend::Mysql, wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>` for `wundergraph_example::friends::table`
- = note: required because of the requirements on the impl of `juniper::types::base::GraphQLType<wundergraph::scalar::WundergraphScalarValue>` for `wundergraph_example::mutations::Mutation<wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>`
- = note: required by `juniper::schema::model::RootNode`
- error[E0271]: type mismatch resolving `<(&i32, &wundergraph::query_builder::types::has_one::HasOne<i32, wundergraph_example::hero::Hero>) as wundergraph::helper::primary_keys::UnRef<'static>>::UnRefed == i32`
- --> wundergraph_example/src/bin/main.rs:57:5
- |
- 57| schema: Arc<Schema<MyContext<DBConnection>>>,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found i32
- |
- = note: expected type `(i32, wundergraph::query_builder::types::has_one::HasOne<i32, wundergraph_example::hero::Hero>)`
- found type `i32`
- = note: required because of the requirements on the impl of `wundergraph::query_builder::mutations::insert::HandleInsert<wundergraph_example::Friend, wundergraph_example::mutations::NewFriend, diesel::mysql::backend::Mysql, wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>` for `wundergraph_example::friends::table`
- = note: required because of the requirements on the impl of `juniper::types::base::GraphQLType<wundergraph::scalar::WundergraphScalarValue>` for `wundergraph_example::mutations::Mutation<wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>`
- = note: required by `juniper::schema::model::RootNode`
- error[E0277]: the trait bound `(wundergraph_example::friends::columns::hero_id, wundergraph_example::friends::columns::friend_id): diesel::expression_methods::eq_all::EqAll<i32>` is not satisfied
- --> wundergraph_example/src/bin/main.rs:57:5
- |
- 57| schema: Arc<Schema<MyContext<DBConnection>>>,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `diesel::expression_methods::eq_all::EqAll<i32>` is not implemented for `(wundergraph_example::friends::columns::hero_id, wundergraph_example::friends::columns::friend_id)`
- |
- = help: the following implementations were found:
- <(A, B) as diesel::expression_methods::eq_all::EqAll<(SA, SB)>>
- = note: required because of the requirements on the impl of `wundergraph::query_builder::mutations::insert::HandleInsert<wundergraph_example::Friend, wundergraph_example::mutations::NewFriend, diesel::mysql::backend::Mysql, wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>` for `wundergraph_example::friends::table`
- = note: required because of the requirements on the impl of `juniper::types::base::GraphQLType<wundergraph::scalar::WundergraphScalarValue>` for `wundergraph_example::mutations::Mutation<wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>`
- = note: required by `juniper::schema::model::RootNode`
- error[E0271]: type mismatch resolving `<(wundergraph_example::appears_in::columns::hero_id, wundergraph_example::appears_in::columns::episode) as diesel::expression::Expression>::SqlType == diesel::sql_types::Integer`
- --> wundergraph_example/src/bin/main.rs:57:5
- |
- 57| schema: Arc<Schema<MyContext<DBConnection>>>,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `diesel::sql_types::Integer`
- |
- = note: expected type `(diesel::sql_types::Integer, diesel::sql_types::SmallInt)`
- found type `diesel::sql_types::Integer`
- = note: required because of the requirements on the impl of `wundergraph::query_builder::mutations::insert::HandleInsert<wundergraph_example::AppearsIn, wundergraph_example::mutations::NewAppearsIn, diesel::mysql::backend::Mysql, wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>` for `wundergraph_example::appears_in::table`
- = note: required because of the requirements on the impl of `juniper::types::base::GraphQLType<wundergraph::scalar::WundergraphScalarValue>` for `wundergraph_example::mutations::Mutation<wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>`
- = note: required by `juniper::schema::model::RootNode`
- error[E0271]: type mismatch resolving `<(&wundergraph::query_builder::types::has_one::HasOne<i32, wundergraph_example::hero::Hero>, &wundergraph_example::Episode) as wundergraph::helper::primary_keys::UnRef<'static>>::UnRefed == i32`
- --> wundergraph_example/src/bin/main.rs:57:5
- |
- 57| schema: Arc<Schema<MyContext<DBConnection>>>,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found i32
- |
- = note: expected type `(wundergraph::query_builder::types::has_one::HasOne<i32, wundergraph_example::hero::Hero>, wundergraph_example::Episode)`
- found type `i32`
- = note: required because of the requirements on the impl of `wundergraph::query_builder::mutations::insert::HandleInsert<wundergraph_example::AppearsIn, wundergraph_example::mutations::NewAppearsIn, diesel::mysql::backend::Mysql, wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>` for `wundergraph_example::appears_in::table`
- = note: required because of the requirements on the impl of `juniper::types::base::GraphQLType<wundergraph::scalar::WundergraphScalarValue>` for `wundergraph_example::mutations::Mutation<wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>`
- = note: required by `juniper::schema::model::RootNode`
- error[E0277]: the trait bound `(wundergraph_example::appears_in::columns::hero_id, wundergraph_example::appears_in::columns::episode): diesel::expression_methods::eq_all::EqAll<i32>` is not satisfied
- --> wundergraph_example/src/bin/main.rs:57:5
- |
- 57| schema: Arc<Schema<MyContext<DBConnection>>>,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `diesel::expression_methods::eq_all::EqAll<i32>` is not implemented for `(wundergraph_example::appears_in::columns::hero_id, wundergraph_example::appears_in::columns::episode)`
- |
- = help: the following implementations were found:
- <(A, B) as diesel::expression_methods::eq_all::EqAll<(SA, SB)>>
- = note: required because of the requirements on the impl of `wundergraph::query_builder::mutations::insert::HandleInsert<wundergraph_example::AppearsIn, wundergraph_example::mutations::NewAppearsIn, diesel::mysql::backend::Mysql, wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>` for `wundergraph_example::appears_in::table`
- = note: required because of the requirements on the impl of `juniper::types::base::GraphQLType<wundergraph::scalar::WundergraphScalarValue>` for `wundergraph_example::mutations::Mutation<wundergraph_example::MyContext<diesel::mysql::connection::MysqlConnection>>`
- = note: required by `juniper::schema::model::RootNode`
- error: aborting due to 6 previous errors
- Some errors have detailed explanations: E0271, E0277.
- For more information about an error, try `rustc --explain E0271`.
- error: could not compile `wundergraph_example`.
- To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment