Devin Fee

Results 25 comments of Devin Fee

Hmm... I seem to be having this issue if using middleware – even a dummy middleware: ``` def middleware(next, root, info, **args): return next(root, info, **args) ``` Annoying, I'm about...

I've found the answer. TLDR: use a [`MiddlewareManager`](https://github.com/graphql-python/graphql-core/blob/6df8a6312b579a6a1454bcf29a566ce5d0fa9849/graphql/execution/middleware.py#L10). The entrypoint for graphql queries is the [`execute` method](https://github.com/graphql-python/graphql-core/blob/6df8a6312b579a6a1454bcf29a566ce5d0fa9849/graphql/execution/executor.py#L31) The relevant bit is this conditional: ```python if middleware: if not isinstance(middleware, MiddlewareManager):...

For what it's worth, this middleware also does the trick: ```python from promise import Promise def depromise_subscription(next, root, info, **args): result = next(root, info, **args) if info.operation.operation == 'subscription' and...

Here's a more contextual example (and a [repl.it demo](https://repl.it/repls/DarkcyanDizzyZettabyte)): ```ts import { useObservable } from 'rxjs-hooks'; import { Observable, from, of } from 'rxjs'; import { catchError, map, switchMap, startWith...

It turns out that the errors comes from inheriting from two classes which have `__slots__`. There would need to be some interesting trickery to maintain the class hierarchy. How would...

@tobgu I don't think I'll be able to contribute to this as it'd be a pretty massive / fundamental code change. For now, I think the answer is for users...

I'm not an autoconf expert, so just following along here. However, this is what the tutorial currently suggests: https://github.com/NixOS/nix-pills/blob/d745db6a41075939c316f82648cfec9c92dd0c95/pills/08/hello-nix-darwin.txt#L8 if we change that to: ``` bintools = clang.bintools.bintools_bin; ``` it...

&^%^&. I have no idea why i can't sign the `license/cla`.

Shot them an email. Thanks @octogonz

Just for fun, here's proof that at one time the CLA was fine with me: https://github.com/microsoft/rushstack/pull/1912#issuecomment-637948313