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.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26a7806e3bec3b0c5c42884e29abda12c0821c67186d6cdd2abac8f9297ae9f |
|
MD5 | 98f330bb4b79b1bcd99d79edd5b6e188 |
|
BLAKE2b-256 | 32a57b3f8b9ad1500cab52256b658f344e1293c371c0c17a5b80688f3ad68761 |