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

GraphQL support #443

Merged
merged 1 commit into from
Oct 15, 2019
Merged

GraphQL support #443

merged 1 commit into from
Oct 15, 2019

Conversation

maartenbreddels
Copy link
Member

This adds the vaex-graphql package, that adds graphql support to query vaex.

GraphQL is really nice to have a standard way to query data, that is not as general as SQL, but also allows us to implement binby, and anything custom we need. Interfacing with frontends is really simple, a ton of libraries are out there.

e.g.

    result = df.graphql.execute("""
    {
        df {
            min {
                x
                y
            }
            mean {
                x
                y
            }
            max {
                x
                y
            }
        }
    }
    """)
    assert data['df']['min']['x'] == df.x.min()

Although it does not depend on tornado, it adds an option to quickly show this using the graphiql interface, you'd have to install:

$ pip install graphene-tornado

Then run

$ python -m vaex.graphql ~/datasets/nyc_taxi2015.arrow

Which should give you a url, to a webinterface:
vaex-graphql

All aggregations are done serially for now. Maybe we should fix that after

@maartenbreddels maartenbreddels merged commit af71624 into master Oct 15, 2019
@maartenbreddels maartenbreddels deleted the feat_graphql branch May 11, 2020 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant