You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Techn1x just as tip... we have also initial hold as string in TS project, but removing all eslint disabled... were again so much work
At the end we have created a override in our apps in application adapter
// Fix for reported issue https://github.com/emberjs/data/issues/9588overridequery(store: Store,type: ModelSchema,query: Record<string,unknown>): Promise<AdapterPayload>{if(query){const{ include }=query;constnormalizedInclude=Array.isArray(include) ? include.join(',') : include;if(normalizedInclude){query['include']=normalizedInclude;}}returnsuper.query(store, type, query);}
The
this.store.query
(legacy adapters) isn't working correctly when we passincludes
as array.The query params result in url is:
&include[]=ceo&include[]=employee
it should be
&include=ceo,employee
This bug was fixed for
findAll
&findRecord
in #9583It was not fixed for
query
(maybe also other) becausethis.buildQuery
will not be called inside that functiondata/packages/adapter/src/rest.ts
Lines 587 to 595 in 83c176c
The text was updated successfully, but these errors were encountered: