Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add lazy execution prototype #155

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

[WIP] Add lazy execution prototype #155

wants to merge 3 commits into from

Commits on Jan 17, 2022

  1. Add lazy execution prototype

    This PR is a proof of concept of adding lazy evaluation support to
    graphql-core.
    
    It follows a similar API to [graphql-ruby](https://graphql-ruby.org/schema/lazy_execution.html)
    and it allows the developer to define "lazy" type to enable batching
    without using asyncio. The tests illustrate how this can be used to enable
    a dataloader pattern.
    
    N.B. The DeferredValue object is very similar in functionality to the
    Promise library from graphql-core v2. I decided to reimplement a
    subset rather than use it directly though because it's scope is bigger
    than what I needed. It's a purely internal implementation detail though
    and can be replaced in future.
    jkimbo committed Jan 17, 2022
    Configuration menu
    Copy the full SHA
    dd70a55 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2022

  1. Test lazy execution with Futures

    Cito committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    34dfc6c View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2022

  1. Configuration menu
    Copy the full SHA
    f967836 View commit details
    Browse the repository at this point in the history