Devin Fee
Devin Fee
To add a bit more color, these appear to be the situations in which a subscriber stops listening: 1. `subscriber.subscribe([])` 2. `subscriber.unsubscribe([])` 3. anytime a subscriber has unsubscribed from its...
Here's an example that will demonstrate this nicely: ``` import asyncio import asyncio_redis CHANNEL = 'my_channel' async def listen(sub, sub_name): for i in range(10): print('{}: {}'.format(sub_name, await sub.next_published())) async def...
@osdiab did you just checkout master? I checked npm and it doesn't look like there's a release for 2.1 yet. Ah, I see you're using 2.0.6 -> https://github.com/osdiab/mitaka-house/blob/1fa40cb4ea82332de865cd44b8108a1b46a8605a/package.json#L22
Late to the party... and I'm not actually using django (I'm use sqlalchemy), but here are my thoughts on how to approach the problem: * `get_node` works fine for relay...
Attached is a version of ACLMiddleware I'm experimenting with. Note that my implementation has: * `get_principals` returns principals (i.e. `['group:Admin', 'user:1234']`) * `permits` is a function that returns True or...
No, but with an PR I made a while back, you can subclass `SQLAlchemyObjectTypeMeta`. https://github.com/graphql-python/graphene-sqlalchemy/pull/51
@pobed2 you could add a variable to your context and bump it on each resolve call. You'll probably also want a more formal data structure with a locking mechanism for...
I thought about this after posting it, and actually I think middleware is the right place for this.
@eamigo86 it is possible: [test-example](https://github.com/graphql-python/graphql-core/blob/5a13e142abd27663e1523b45ae9e10e72aaf9607/graphql/utils/tests/test_build_client_schema.py#L415) However, I'm not sure if you're able to make use of them when defining a schema ([a schema directive](https://www.apollographql.com/docs/graphql-tools/schema-directives.html)), or if they're only supported client...
If you're calling a `sync` resolve function for your subscription you need to return an observable. If you're calling an `async` resolve function, you need to `yield` from an asyncio...