adonis-jsonable
JSON →Adonis-jsonable is a trait for AdonisJS Lucid models (v4.x) that automatically stringifies and parses PostgreSQL JSON fields. It solves the issue where knex.js requires JSON stringification before saving, but after saving the in-memory model retains the stringified value instead of the original object. Version 0.2.1, last updated in 2017, no active maintenance. Use it by defining jsonFields on your model or passing an array to this.addTrait. Only supports Adonis 4 with @adonisjs/fold peer dependency and the old provider system.
Traffic · last 30 days stale · no recent hits
total hits 16
actors 3 distinct systems
last hit 17d ago human
top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇫🇷 France · 🇨🇳 China
Resources
packageadonis-jsonable ↗