message: Ensure embedModelList is an array before paginating
diff: @@ -179,6 +179,7 @@ export function embed(schema: any, request: any, json: JsonData, config: any) {
  let paginatedEmbeddables: JsonData = { data: [], links: {}, meta: {} };
  if (embeddable !== null && embeddable !== undefined) {
  const embedModelList = embeddable.models; // Get the items to embed
  + if (Array.isArray(embedModelList)) {
  paginatedEmbeddables = paginate(request, embedModelList, {});
  // Go through each of the items that need to be embedded
  for (const embedItem of paginatedEmbeddables.data) {
  @@ -187,6 +188,7 @@ export function embed(schema: any, request: any, json: JsonData, config: any) {
  serializedItems.push(serializedItem.data);
  }
  paginatedEmbeddables.data = serializedItems;
  + }
  } // Finished gathering embeddable items
  // TODO: convert embeditems to dictionary if not a toMany relationship
  const peData = paginatedEmbeddables.data;
  