-
-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shall use leftJoin by default and support on clause #98
Comments
Ok, let's make it be |
export type QueryJoin = {
field: string;
select?: QueryFields;
required?: boolean; // <-- add here?
on?: string; // <-- maybe this together?
}; You do this PR is better. I need to take the time to familiarize myself with this new architecture. When using left join and the relation can be set p.s. I feel that it will become more and more complicated here. |
UP! We had the same problem here :D |
does this related to #31 ? @zMotivat0r |
yep |
Is it correct that I can´t get e.g. only the data of the currently logged in user by now with the config options given or am I missing anything? |
UP! I have the same problem! |
See possible workaround: |
Not released yet @zmotivator? |
Has the |
crud/packages/crud-typeorm/src/typeorm-crud.service.ts
Lines 335 to 344 in 35acb44
shall use
leftJoin
by default and useinnerJoin
by configsee
sequelize
optionsinclude.required
behaviorIf the relation can be set
NULL
,innerJoin
will break the query.refer: http://docs.sequelizejs.com/class/lib/model.js~Model.html#static-method-findAll
The text was updated successfully, but these errors were encountered: