🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@dmamontov/graphql-mesh-resolve-to-by-delegate-transform

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmamontov/graphql-mesh-resolve-to-by-delegate-transform

Resolve To By Delegate Transform - is a transformer for [GraphQL Mesh](https://graphql-mesh.com/) that adds a directive to enable the creation of relationships with pre- and post-conditions.

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
22
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

Resolve To By Delegate Transform for GraphQL Mesh

Resolve To By Delegate Transform - is a transformer for GraphQL Mesh that adds a directive to enable the creation of relationships with pre- and post-conditions.

Installation

Before you can use the Resolve To By Delegate Transform, you need to install it along with GraphQL Mesh if you haven't already done so. You can install these using npm or yarn.

npm install @dmamontov/graphql-mesh-resolve-to-by-delegate-transform

or

yarn add @dmamontov/graphql-mesh-resolve-to-by-delegate-transform

Configuration

Modifying tsconfig.json

To make TypeScript recognize the Resolve To By Delegate Transform, you need to add an alias in your tsconfig.json.

Add the following paths configuration under the compilerOptions in your tsconfig.json file:

{
  "compilerOptions": {
    "paths": {
       "resolve-to-by-delegate": ["./node_modules/@dmamontov/graphql-mesh-resolve-to-by-delegate-transform"]
    }
  }
}

Adding the Transform to GraphQL Mesh

You need to include the Resolve To By Delegate Transform in your GraphQL Mesh configuration file (usually .meshrc.yaml). Below is an example configuration that demonstrates how to use this transform:

transforms:
  - resolveToByDelegate: true

additionalTypeDefs:
  - node_modules/@dmamontov/graphql-mesh-resolve-to-by-delegate-transform/esm/resolve-to-by-directive.graphql

Conclusion

Remember, always test your configurations in a development environment before applying them in production to ensure that everything works as expected.

FAQs

Package last updated on 06 Mar 2026

Did you know?

Socket

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.

Install

Related posts