simonw / datasette-graphql

Datasette plugin providing an automatic GraphQL API for your SQLite databases
https://datasette-graphql-demo.datasette.io/
Apache License 2.0
100 stars 6 forks source link

Use ?_nofacet=1 #76

Closed simonw closed 3 years ago

simonw commented 3 years ago

Added in https://docs.datasette.io/en/stable/changelog.html#v0-57 - looks like I forgot to do this in #61.

simonw commented 3 years ago

Currently we call this endpoint: https://github.com/simonw/datasette-graphql/blob/289484d9dc40faa76dbd9af24786b3069cb6a75f/datasette_graphql/utils.py#L537-L564

simonw commented 3 years ago

Using _nocount=1 isn't right here because of this code that reads the total count: https://github.com/simonw/datasette-graphql/blob/289484d9dc40faa76dbd9af24786b3069cb6a75f/datasette_graphql/utils.py#L263-L264