Skip to content

Fetch upstream with feathers-objection:master#12

Open
FaizuddinEverest wants to merge 1 commit intodinode:masterfrom
TheHyphen:fetch-upstream
Open

Fetch upstream with feathers-objection:master#12
FaizuddinEverest wants to merge 1 commit intodinode:masterfrom
TheHyphen:fetch-upstream

Conversation

@FaizuddinEverest
Copy link

No description provided.


// $select uses a specific find syntax, so it has to come first.
if (filters.$select) {
q.select(...filters.$select.concat(`${this.Model.tableName}.${this.id}`));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just double check we didn't make this change.


if (query && query.$joinRelation) {
q
.distinct(`${this.Model.tableName}.*`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we add/need this?


return newObject;
});
return this._createQuery(params)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please look into this and see if this._createQuery should be this.createQuery.

}

const q = this.createQuery(params);
const q = this._createQuery(params);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shouldn't make this change 🤔


const { query: queryParams } = this.filterQuery(params);
const query = this.createQuery(params);
const query = this._createQuery(params);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be createQuery without the _.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants