Enterspeed Product Updates logo

Product Updates

See the latest new features, improvements, and product updates

Subscribe to Updates

Labels

  • All Posts
  • Fix
  • Feature
  • Improvement
  • Announcement
  • Product Update
  • 🤫 Teaser
  • 🛠 Service
  • 💡 Tip

Jump to Month

  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • April 2023
  • January 2023
  • November 2022
  • September 2022
  • June 2022
  • March 2022
  • January 2022
  • December 2021
  • November 2021
Powered️ byAnnounceKit

Create yours, for free!

Feature
7 months ago

Return reference as object instead of array

When building Enterspeed schemas you have almost full control over the output you return to the views. However, there are cases when working with references where you don’t have that full control. To address this, we've now introduced a first function.

When you use the children or filter function while building a reference, these functions can return multiple references and because of that the result is an array. But sometimes, you only need the first child, or your filter query includes a comparison on an ID field, and you expect just one reference. In such cases, you probably want the result as an object instead of an array with a single item. This is now possible by using the new first function.

The first function returns the first item in the result set. The item is returned as an object instead of an array with one item. If no items are found null is returned.

Read more about the first function on the Enterspeed docs site.

Avatar of authorEnterspeed