Sunbird-RC / open-saber

Database agnostic, readily scalable APIs to store data!
https://opensaber.io/
MIT License
10 stars 44 forks source link

Search query to return complete nested data #433

Open tejash-jl opened 3 years ago

tejash-jl commented 3 years ago

Currently, the search API is returning only the base fields and for the nested field, it returns osid. Is there any option to pass so I can get the complete data?

Currently, I'm using the search API to get all the data present under an entity. Is there any other option to get the complete entity information without making subsidiary calls?

{ "@type": "Teacher", "name": "teacher 1", "_osCreatedAt": "2020-12-04T14:40:31Z", "_osUpdatedBy": "", "address": { "osid": "1-d5efb8ef-aaae-4730-84d5-930a42a323f5" }, "osid": "1-8ebb36ba-9425-469d-be81-6a75a0187a44", "_osUpdatedAt": "2020-12-04T14:40:31Z", "_osCreatedBy": "" } I would need the address data also to be fetched inline.