Socket
Socket
Sign inDemoInstall

feathers-sequelize

Package Overview
Dependencies
4
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

12

package.json
{
"name": "feathers-sequelize",
"description": "A service adapter for Sequelize an SQL ORM",
"version": "1.0.3",
"version": "1.0.4",
"homepage": "https://github.com/feathersjs/feathers-sequelize",

@@ -9,3 +9,11 @@ "main": "lib/",

"feathers",
"feathers-plugin"
"feathers-plugin",
"sequel",
"sequelize",
"mysql",
"sqlite",
"mariadb",
"postgres",
"pg",
"mssql"
],

@@ -12,0 +20,0 @@ "licenses": [

52

README.md

@@ -86,2 +86,28 @@ # feathers-sequelize

## Options
Creating a new Sequelize service currently offers the following options:
- `Model` (**required**) - The Sequelize model definition
- `id` (default: `id`) [optional] - The name of the id property
- `paginate` [optional] - A pagination object containing a `default` and `max` page size (see below)
## Pagination
When initializing the service you can set the following pagination options in the `paginate` object:
- `default` - Sets the default number of items
- `max` - Sets the maximum allowed number of items per page (even if the `$limit` query parameter is set higher)
When `paginate.default` is set, `find` will return an object (instead of the normal array) in the following form:
```
{
"total": "<total number of records>",
"limit": "<max number of items per page>",
"skip": "<number of skipped items (offset)>",
"data": [/* data */]
}
```
## Extending

@@ -175,28 +201,2 @@

## Options
Creating a new Sequelize service currently offers the following options:
- `Model` - The Sequelize model definition
- `id` (default: `id`) - The name of the id property
- `paginate` [optional] - A pagination object containing a `default` and `max` page size (see below)
## Pagination
When initializing the service you can set the following pagination options in the `paginate` object:
- `default` - Sets the default number of items
- `max` - Sets the maximum allowed number of items per page (even if the `$limit` query parameter is set higher)
When `paginate.default` is set, `find` will return an object (instead of the normal array) in the following form:
```
{
"total": "<total number of records>",
"limit": "<max number of items per page>",
"skip": "<number of skipped items (offset)>",
"data": [/* data */]
}
```
## Query Parameters

@@ -203,0 +203,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc