You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this doesn't seem to be supported by juniper-from-schema :
error[E0107]: wrong number of type arguments: expected 1, found 0
--> lib/modules/gva/src/schema.rs:37:19
|
37 | context_type: Context<DB: BcDbInReadTx>
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 type argument
error[E0229]: associated type bindings are not allowed here
--> lib/modules/gva/src/schema.rs:37:31
|
37 | context_type: Context<DB: BcDbInReadTx>
| ^^^^^^^^^^^^^^^^ associated type not allowed here
error: aborting due to 2 previous errors
Have you planned to support context type with generics and/or explicit lifetime?
The text was updated successfully, but these errors were encountered:
Good catch. I would like to get #74 merged first so we don't have to migrate more graphql_object! macro code to juniper::object. That PR is currently blocked by graphql-rust/juniper#441. I have requested a re-review of that from @theduke so lets wait and see.
I need a Context type with generics because it contains a database handler whose type varies according to the situations. The Context type with generics is supported by juniper:
https://docs.rs/juniper/0.14.1/juniper/macro.graphql_object.html#generics-and-lifetimes
But this doesn't seem to be supported by juniper-from-schema :
Have you planned to support context type with generics and/or explicit lifetime?
The text was updated successfully, but these errors were encountered: