{"repo":"simonw/datasette-graphql","free":true,"listed":false,"github":"https://github.com/simonw/datasette-graphql","clone":"git clone https://github.com/simonw/datasette-graphql.git","description":"Datasette plugin providing an automatic GraphQL API for your SQLite databases","language":"Python","stars":111,"topics":["datasette","datasette-plugin","datasette-io","graphql","sqlite"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"datasette-graphql Datasette plugin providing an automatic GraphQL API for your SQLite databases Read more about this project: GraphQL in Datasette with the new datasette-graphql plugin - Installation - Configuration - Usage Querying for tables and columns Fetching a single record Accessing nested objects Accessing related objects Filtering tables Sorting Pagination Search Columns containing JSON strings Auto camelCase CORS Execution limits - The graphql() template function - Adding custom fields with plugins - Development Installation Install this plugin in the same environment as Datasette. $ datasette install datasette-graphql Configuration By default this plugin adds the GraphQL API at /graphql . You can configure a different path using the path plugin setting, for example by adding this to metadata.json : This will set the GraphQL API to live at /-/graphql instead. Usage This plugin sets up /graphql as a GraphQL endpoint for the first attached database. If you have multiple attached databases each will get its own endpoint at /graphql/name of database . The automatically generated GraphQL schema is available at /graphql/name of database.graphql . Querying for tables and columns Individual tables (and SQL views) can be queried like this: In this example query the underlying database table is called repos and its columns include id , full name and description . Since description is a reserved word the query needs to ask for description instead. Fetching a single record If y","default_branch":null,"files":null,"tree":[],"storefront":"/r/simonw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/simonw/datasette-graphql/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}