gregorip02 / restql

📦 A data resolution package for your Laravel models.
https://github.com/gregorip02/restql/wiki
GNU General Public License v3.0
128 stars 6 forks source link

[2.x] Add where-in clausule #9

Closed gregorip02 closed 4 years ago

gregorip02 commented 4 years ago
Json Format
{
    // Using explicit attributes
    "whereIn": {
        "column": "id", // Optional, default is "id"
        "value": [1, 2, 3]
    },

    // Using implicit attributes
    "whereIn": ["id", [1, 2, 3]],

    // Using super implicit attributes, this filter by the primary key
    "whereIn": [1, 2, 3]
}