palik

wundergraph_example

May 6th, 2020
1,545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 8.12 KB | None | 0 0
  1. /opt/devel/rust/wundergraph/wundergraph_example [issue-3|…1⚑ 1]
  2. 11:49 $ cargo build --no-default-features --features mysql
  3.    Compiling wundergraph v0.1.2 (/opt/devel/rust/wundergraph/wundergraph)
  4.    Compiling wundergraph_example v0.1.0 (/opt/devel/rust/wundergraph/wundergraph_example)
  5. 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`
  6.  --> wundergraph_example/src/bin/main.rs:57:5
  7.   |
  8. 57|     schema: Arc<Schema<MyContext<DBConnection>>>,
  9.   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `diesel::sql_types::Integer`
  10.   |
  11.   = note: expected type `(diesel::sql_types::Integer, diesel::sql_types::Integer)`
  12.              found type `diesel::sql_types::Integer`
  13.   = 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`
  14.   = 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>>`
  15.   = note: required by `juniper::schema::model::RootNode`
  16.  
  17. 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`
  18. --> wundergraph_example/src/bin/main.rs:57:5
  19.  |
  20. 57|     schema: Arc<Schema<MyContext<DBConnection>>>,
  21.  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found i32
  22.  |
  23.  = note: expected type `(i32, wundergraph::query_builder::types::has_one::HasOne<i32, wundergraph_example::hero::Hero>)`
  24.             found type `i32`
  25.  = 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`
  26.  = 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>>`
  27.  = note: required by `juniper::schema::model::RootNode`
  28.  
  29. 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
  30. --> wundergraph_example/src/bin/main.rs:57:5
  31.  |
  32. 57|     schema: Arc<Schema<MyContext<DBConnection>>>,
  33.  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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)`
  34.  |
  35.  = help: the following implementations were found:
  36.            <(A, B) as diesel::expression_methods::eq_all::EqAll<(SA, SB)>>
  37.  = 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`
  38.  = 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>>`
  39.  = note: required by `juniper::schema::model::RootNode`
  40.  
  41. 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`
  42. --> wundergraph_example/src/bin/main.rs:57:5
  43.  |
  44. 57|     schema: Arc<Schema<MyContext<DBConnection>>>,
  45.  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `diesel::sql_types::Integer`
  46.  |
  47.  = note: expected type `(diesel::sql_types::Integer, diesel::sql_types::SmallInt)`
  48.             found type `diesel::sql_types::Integer`
  49.  = 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`
  50.  = 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>>`
  51.  = note: required by `juniper::schema::model::RootNode`
  52.  
  53. 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`
  54.  --> wundergraph_example/src/bin/main.rs:57:5
  55.   |
  56. 57|     schema: Arc<Schema<MyContext<DBConnection>>>,
  57.   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found i32
  58.   |
  59.   = note: expected type `(wundergraph::query_builder::types::has_one::HasOne<i32, wundergraph_example::hero::Hero>, wundergraph_example::Episode)`
  60.              found type `i32`
  61.   = 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`
  62.   = 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>>`
  63.   = note: required by `juniper::schema::model::RootNode`
  64.  
  65. 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
  66.  --> wundergraph_example/src/bin/main.rs:57:5
  67.   |
  68. 57|     schema: Arc<Schema<MyContext<DBConnection>>>,
  69.   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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)`
  70.   |
  71.   = help: the following implementations were found:
  72.             <(A, B) as diesel::expression_methods::eq_all::EqAll<(SA, SB)>>
  73.   = 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`
  74.   = 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>>`
  75.   = note: required by `juniper::schema::model::RootNode`
  76.  
  77. error: aborting due to 6 previous errors
  78.  
  79. Some errors have detailed explanations: E0271, E0277.
  80. For more information about an error, try `rustc --explain E0271`.
  81. error: could not compile `wundergraph_example`.
  82.  
  83. To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment