Skip to content

4.0.0-alpha.4

Compare
Choose a tag to compare
@brunobuddy brunobuddy released this 02 Jul 12:44
· 171 commits to master since this release

🌟 Highlights

📖 Swagger API Doc

An API doc is now available on serve at http://localhost:1111/api

image

⏱️ Timestamp property type

A Timestamp type is now available to provide a time.

      - { name: birthdate, type: date } # Just date
      - { name: aquiredAt, type: timestamp } # Date and time

⚙️ Filter by relation

You can now filter by a property of a relation when fetching a list:

# REST API
GET http://localhost:1111/api/dynamic/cats?relations=owner&owner.id_eq=1
GET http://localhost:1111/api/dynamic/cats?relations=owner&owner.name_eq=Jorge
// JS SDK
const cats = await manifest
  .from('cats')
  .with(['owner', 'store']) // Load relation first if not eager.
  .where(`owner.id in 1,2,3`)
  .andWhere(`store.name = CatLand`)
  .find()

🙏 Special thanks

🪲 Bug fixes

  • Wrong typing #123
  • Not working on Astro framework #119

👉 What's Changed

Full Changelog: 4.0.0-alpha.3...4.0.0-alpha.4