SQLDataSource
SQLDataSource copied to clipboard
SQL DataSource for Apollo GraphQL projects
Does anyone know what can cause this? ``` src/datasources/order-api.ts(17,8): error TS2551: Property 'cache' does not exist on type 'QueryBuilder'. Did you mean 'catch'? ```` Relevant packages: "knex": "^2.0.0" "datasource-sql": "^2.0.1",
When initing a new SQLDataSource in the datasources function with an existing knex connection it throws the following error: ``` Can't extend QueryBuilder with existing method ('cache') ``` **Option 1:...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
Hello, is it possible to programmatically invalidate the cache for a specific query? This could be helpful for example when properties in that query are changed by a mutation. Thanks!
Currently Knex converts encrypted PG fields to Buffers, which are not consistently encoded to and from JSON. Add support for optionally passing a param to `.cache()` that handles buffers (...
Thank you for sharing this module. I'm writing tests for Datasource extending it and I've found the cache getting in the way. I'm mocking knex using jest-mock-knex to return different...
This project could really use some test coverage. Jest is configured, but mocking and testing that the cache is working when expected is necessary.
First of thanks for this nice data source. The reason why I'm writing is your given example in the [usage section](https://github.com/cvburgess/SQLDataSource#usage). You're creating the `MyDatabase` instance outside of the context...
I believe this is related to [knex issue 3553](https://github.com/knex/knex/issues/3553), but wanted to surface it here because of a potential security issue that could result. For PG, ```query.toString()``` will omit bigint...
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...