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

Add GraphQL endpoint #176

Open
yozlet opened this issue Dec 29, 2017 · 8 comments
Open

Add GraphQL endpoint #176

yozlet opened this issue Dec 29, 2017 · 8 comments
Labels

Comments

@yozlet
Copy link

yozlet commented Dec 29, 2017

Would make it much easier to build React & similar frontends. Maybe with https://github.com/graphql-python/sanic-graphql ?

@wulfmann
Copy link

wulfmann commented Jan 8, 2018

This project probably would not be the place for that. This is a layer for sqllite specifically. It solves a similar problem as graphql, so adding that here wouldn't make sense.

Here's an example i found from google that uses micro to run a graphql microservice. you'd just then need to connect your db.
https://github.com/timneutkens/micro-graphql

@yozlet
Copy link
Author

yozlet commented Jan 9, 2018

@wulfmann I think I disagree, except I'm not entirely sure what you mean by that first paragraph. The JSON API that Datasette currently exposes is quite different to GraphQL.

Furthermore, there's no "just" about connecting micro-graphql to a DB; at least, no more "just" than adding any other API. You still need to configure the schema, which is exactly the kind of thing that Datasette does for JSON API. This is why I think that GraphQL's a good fit here.

@wulfmann
Copy link

wulfmann commented Jan 9, 2018

@yozlet Yes I think that I was confused when I posted my original comment. I see your main point now and am in agreement.

@gijs
Copy link

gijs commented Jan 23, 2018

👍 I'd like this too!

@wuhland
Copy link

wuhland commented Feb 26, 2018

great idea!

@simonw simonw added the feature label Jul 10, 2018
@eads
Copy link

eads commented Oct 22, 2018

I'd like this as well. It would let me access Datasette-driven projects from GatsbyJS the same way I can access Postgres DBs via Hasura. While I don't see SQLite replacing Postgres for the 50m row datasets I sometimes have to work with, there's a whole class of smaller datasets that are great with Datasette but currently would find another option.

@eads
Copy link

eads commented Oct 31, 2019

👋 I'd be interested in building this out in Q1 or Q2 of 2020 if nobody has tackled it by then. I would love to integrate Datasette into @thechicagoreporter's practice, but we're also fully committed to GraphQL moving forward.

@nkirsch
Copy link

nkirsch commented Apr 21, 2020

@eads I'm interested in helping, if there's still a need...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants