Comments (1)
@EirikFA The loader actually uses the QueryBuilder API under the hood which uses this as the type signature:
// From TypeORM type definitions
/**
* Sets WHERE condition in the query builder.
* If you had previously WHERE expression defined,
* calling this function will override previously set WHERE conditions.
* Additionally you can add parameters used in where expression.
*/
where(where: Brackets | string | ((qb: this) => string) | ObjectLiteral | ObjectLiteral[], parameters?: ObjectLiteral): this;
I agree that the typing for the where argument should be better, and I have already improved it in a refactor of the package that I am actually working on as we speak :) If you would like a preview of what that will look like, please check out https://gql-loader.bmuller.net/ for the WIP documentation & types of the refactored package. There is still a bit of cleanup required there to get everything in line with how TypeORM types their stuff, but it is close to what the final result will be. At the end of the day, the where
method of the dataloader will match the type signature of the where
method in the TypeORM query builder.
from typeorm-graphql-loader.
Related Issues (16)
- Question : How can i use this loader without attaching GraphQLDatabaseLoader with predefined TypeOrm connection in GQL config? HOT 3
- export builder and other important types in the entry file please HOT 2
- Support for named columns HOT 4
- column "createdat" does not exist HOT 5
- use a related table for where() and order() HOT 12
- Thanks! HOT 1
- ConfigureLoader Not working! HOT 13
- Support Data Mapper entities HOT 1
- Ordering of sub relations
- Redundant typeof BaseEntity typing HOT 1
- How to properly implement resolvers? HOT 5
- [Question] How does this library handle field resolvers? HOT 2
- Small fix for graphqlQueryBuilder.ts HOT 2
- Pagination query not selecting correct fields HOT 5
- Support nested/inherited types fields HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typeorm-graphql-loader.