Straight to your questions: this design is valid in terms of relating N-to-N items from content types in Telerik Backend Services. A notable difference in Backend Services is that their database management is not a traditional RDBMS, but is document-based (No SQL) and allows you to apply a significant denormalization if needed.
In general, the 'multiple relation' field in Backend Services is an array containing the GUIDs of the related items. It is noteworthy that the integrity of the data should be maintained and assured by some validation logic, either client-side or server-side (cloud code), or both.
The Power fields
are a very convenient way to fetch related data. Within a power field expression you can incorporate filtering, sorting, paging and subset of fields expressions, same as in the examples from here
. Please note that a query with power fields will return up to 50 items.
A power fields expression could be executed in two ways:
- by sending a "X-Everlive-Power-Fields" header with the expression
- by constructing a 'request.powerFieldsExpression' in the Cloud code of a certain content type (in some of the 'before' event hooks)
We'd also suggest to read this forum thread
about updating array fields and this blog post about cloud code
Hopefully, this information will help you get started. If you have further questions do not hesitate to contact us.
Everlive is now Telerik Backend Services
, and is part of the Telerik Platform
. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar
on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)