A GraphQL endpoint for Datasette
Project description
datasette-graphql
A GraphQL endpoint for Datasette
Work in progress alpha - this probably isn't worth using yet.
Installation
Install this plugin in the same environment as Datasette.
$ pip install datasette-graphql
Usage
This sets up /graphql
as a GraphQL endpoint for the first attached database. Individual tables can be queried like this:
{
name_of_table {
first_column
second_column
}
}
Still to come:
- Pagination
- Filtering (e.g. rows where age > X)
- Foreign key expansion
- Much, much more
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-graphql
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for datasette_graphql-0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 137eb0efc41bab9e5503f93a95eea4db6155800e0c6284438f8582dd8627ee39 |
|
MD5 | 38fdbd6c8ca5360bb1d86e720171694c |
|
BLAKE2b-256 | 24b1c0138aed923f00884e90394fe02522664058137d4eecd1e2fe70b70d6c85 |