
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@kurier/addon-many-to-many
Advanced tools
A Kurier addon that creates intermediate resource types for many-to-many relationships.
A Kurier addon that creates intermediate resource types for many-to-many relationships.
Install it using npm or yarn:
$ npm i -D @kurier/addon-many-to-many
$ yarn add -D @kurier/addon-many-to-many
Add it to your Kurier app:
import ManyToManyAddon from "@kurier/addon-many-to-many";
// ...
app.use(ManyToManyAddon);
Apply the addon to any resource relationship by setting the manyToMany
flag to true
:
import { Resource } from "kurier";
import Designer from "./designer";
export default class Collection extends Resource {
static schema = {
attributes: {
name: String,
slug: String,
},
relationships: {
designers: {
type: () => Designer,
manyToMany: true,
foreignKeyName: "design_id",
},
},
};
}
MIT
FAQs
A Kurier addon that creates intermediate resource types for many-to-many relationships.
The npm package @kurier/addon-many-to-many receives a total of 11 weekly downloads. As such, @kurier/addon-many-to-many popularity was classified as not popular.
We found that @kurier/addon-many-to-many demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.