Open
Description
I want to use Juniper together with SQLite, and there's only one connection to the database at a time. If I set the Context struct as such:
pub struct Context {
///this could be a database connection
db: Arc<Connection>
}
Then trying to use
struct Query;
#[graphql_object(context = Context, noasync)]
impl Query {
...
gives an error, because the context isn't sync
noasync
doesn't appear to do anything. I don't want to use GraphQLValueAsync
, I want to use Juniper purely synchronously. What can I do?