Dear Backendless-Team,
when I try to retrieve an object using Backendless.Persistance.of(Datamodel).findById(‘objectid’) without specifying any relations, I get the following error back from your server:
Request URL: https://api.backendless.com/v1/data/Brand/83D67DE3-BE4B-8D95-FF29-8E7BF6D0D700?loadRelations=*
Internal server error
If, however, I supply the correct relation, then it works. Note that the ‘*’ was inserted by your SDK.
This brings us to the next problem: There is no way to query for relations, as “describe” will not correctly tell me whether a field is a relation or not. Having defined the relation by hand in your interface, I will always get back “type: STRING” and “relatedTable: undefined”.
Request URL: https://api.backendless.com/v1/data/Brand/properties
[{"name":"objectId","required":false,"type":"STRING","defaultValue":null,"relatedTable":null},{"name":"Name","required":false,"type":"STRING","defaultValue":null,"relatedTable":null},{"name":"created","required":false,"type":"DATE","defaultValue":null,"relatedTable":null},{"name":"Setcards","required":false,"type":"STRING","defaultValue":null,"relatedTable":null},{"name":"updated","required":false,"type":"DATE","defaultValue":null,"relatedTable":null}]
(Setcards is actually a related field here.)
Any ideas?