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
initially I tried to do the relations with the documentation, with the fields of ids of type string, and it did not work, only the method post. after trying in various ways and without getting any results, download the example of todo-list, and it worked normally, and when only I change the data type of todoListId, it does not work !, it's as if I omitted the ids in the queries , why also I try with:
@get('/ companies',{responses: {'200': {description: 'Array of Company model instances',content: {'application / json': {schema: {type: 'array'},},},},},})asyncfind(
@ param.query.object('filter',getFilterSchemaFor(Company))filter ?: Filter,): Promise<Company[]>{console.log(filter);constresult: any=awaitthis.companyRepository.find();for(constkeyinresult){result[key].currencies=awaitthis.currencyRepository.find({where: {companyId: result[key].id},});console.log('result >>>>>',result[key].id.valueOf());}returnresult;}
and even without getting any results with the string type
Does anyone know what's going on? Please help me!
The text was updated successfully, but these errors were encountered:
I was doing more tests and I found that the problem is not the data type of the id field, the problem is the number of digits, when todolistId is 24 digits (number of digits of an ObjetcId), it is when the methods do not work mentioned above. Why does that happen? Is there any restriction?
Hi @germancv Thank you for the detailed steps. I think this is similar to #2085 and #1987. Do you mind looking at #2085 and if your issue is a duplicate, then let's continue discussion there and use it for tracking.
I was doing more tests and I found that the problem is not the data type of the id field, the problem is the number of digits, when todolistId is 24 digits (number of digits of an ObjetcId), it is when the methods do not work mentioned above. Why does that happen? Is there any restriction?
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.
Description
loopback 4: The
GET
,DELETE
andPATCH
methods do not work in a relation whentodoListId
is dynamically generated as a text string.It works normally.
it does not work, only the post method
Link to github: example todo-list
todo-list
initially I tried to do the relations with the documentation, with the fields of
ids
of type string, and it did not work, only the methodpost
. after trying in various ways and without getting any results, download the example of todo-list, and it worked normally, and when only I change the data type of todoListId, it does not work !, it's as if I omitted theids
in the queries , why also I try with:and even without getting any results with the string type
Does anyone know what's going on? Please help me!
The text was updated successfully, but these errors were encountered: