4.0.0-alpha.4
·
528 commits
to master
since this release
🌟 Highlights
📖 Swagger API Doc
An API doc is now available on serve at http://localhost:1111/api
⏱️ 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
- @RantingHuman for feedback on JS SDK usage
- @caeg0n for feedback with Astro framework
🪲 Bug fixes
👉 What's Changed
- build(deps): bump the npm_and_yarn group across 3 directories with 2 updates by @dependabot in #121
- Display API Documentation (Swagger UI) by @brunobuddy in #124
- Timestamp property type by @brunobuddy in #126
- feat(crud): filter by relation, Closes #127 by @brunobuddy in #128
Full Changelog: 4.0.0-alpha.3...4.0.0-alpha.4