juniper-from-schema
juniper-from-schema copied to clipboard
Problem after upgrading to juniper
Hey, I have a problem with lookAhead after upgrading juniper 0.15.3 ( it works with 0.14.2 Thanks
wrong number of lifetime arguments: expected 2, found 1
expected 2 lifetime argumentsrustc(E0107)
graphql.rs(14, 1): expected 2 lifetime arguments
no method named select_child
found for reference &juniper::executor::look_ahead::LookAheadSelection<'_, juniper::value::scalar::DefaultScalarValue>
in the current scope
method not found in &juniper::executor::look_ahead::LookAheadSelection<'_, juniper::value::scalar::DefaultScalarValue>
help: items from traits can only be used if the trait is in scope
note: the following trait is implemented but not in scope; perhaps add a use
for it:
use juniper::executor::look_ahead::LookAheadMethods;
rustc(E0599)
graphql.rs(14, 1): method not found in &juniper::executor::look_ahead::LookAheadSelection<'_, juniper::value::scalar::DefaultScalarValue>
Are you using a git dependency for juniper-from-schema? The version that is on crates.io doesn't support juniper 0.15.
There has been a bunch of breaking changes as well. The changelog has the details.
I only use the crate.io
How can I use the last version ? Thanks
Using a git dependency:
juniper-from-schema = { git = "https://github.com/davidpdrsn/juniper-from-schema.git", branch = "master" }
I have now conflict of versions with juniper_eager_loading here is my Cargo.toml file [dependencies] async-std = { version = "1.8.0"} diesel = { version = "1.4.5", features = ["postgres","64-column-tables","r2d2" ,"chrono", "numeric"] } r2d2-diesel = "1.0.0" #r2d2 = "0.8.9" #features = [..., "64-column-tables"] dotenv = "0.15.0" diesel_cli_ext = "0.3.6" #bigdecimal = "0.0.14" bigdecimal = { version = "0.1.2", features = ["serde"] }
diesel_full_text_search = "" #diesel_codegen = { version="", features =["postgres"] } serde = { version = "1.0.116"}
serde_derive = "" serde_json = ""
actix-web = "3.3.2" actix-rt = "" actix = "" actix-cors = "*" chrono = { version = "0.4", features = ["serde"] }
lazy_static = "1.4.0" #juniper ="0.14.2" juniper ="0.14.2" #juniper-from-schema = "0.5.2" juniper-from-schema = { git = "https://github.com/davidpdrsn/juniper-from-schema.git", branch = "master" } juniper-eager-loading = "0.5.1"
env_logger = "0.8.1" futures = "0.3"
juniper-eager-loading doesn’t yet support juniper 0.15. It’s quite tricky updating it to async and I haven’t had time to do it yet. So I’m afraid if you want to use the new juniper you cannot use juniper-eager-loading.
Thanks May I help you although I am not an expert