The collection for your resources. Made specifically to work with arrays of objects from your API Responses.
Nuxt Collection | Collection | Vue Collection
- Made specifically to work with arrays of objects
- JSON API specification support
- Extends the Array class
- Names and conventions that makes sense
- Models support, fully compatible with vue-api-query, sarala and coloquent
- Integrable
primaryKey
,fresh
andtoQuery
- TypeScript support
- Add
@eloqjs/nuxt-collection
dependency to your project
yarn add @eloqjs/nuxt-collection # or npm install @eloqjs/nuxt-collection
- Add
@eloqjs/nuxt-collection
to themodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'@eloqjs/nuxt-collection',
// With options
['@eloqjs/nuxt-collection', { /* module options */ }],
// Module Options
collection: {}
]
}
You can contribute online with Gitpod:
Or locally:
- Clone this repository
- Install dependencies using
yarn install
- Start development server using
yarn dev
- 🔥 Inspiration from Laravel Eloquent Collections.
- 💎 Based on collect.js by Daniel Eckermann. Thank you so much for your amazing package!
- ❤️ Whoever contributes to this project!
Copyright (c) João Pedro Antunes Silva