Commonly, configuration file is named
.meshrc.yaml and placed in the root of your project.
.cjs files are also supported.
Mandatory field. Defines the list of your external data sources for your API mesh.
Acceptable external sources, with detailed specific configurations, available in the Handlers section.
Defines the list of manipulations to apply to the unified mesh schema.
Available transforms available in the Transforms section.
Additional type definitions, or type definitions overrides you wish to add to the schema mesh. Read more
Additional resolvers, or resolvers overrides you wish to add to the schema mesh. Read more
Extend the mesh schema's capabilities with additional plugins.
Configure the caching strategy for your unified schema.
Mesh as a server configuration. Read more
fork- - Spawn multiple server instances as node clusters (default:
1) One of:
port- - TCP Port to listen (default:
4000) One of:
String) - The binding hostname (default:
Object) - Configuration for CORS:
Array of String)
Array of String)
String) - Path to your static files you want to be served with GraphQL Mesh HTTP Server
Boolean) - Show GraphiQL Playground
Object) - SSL Credentials for HTTPS Server If this is provided, Mesh will be served via HTTPS:
String) - Path to GraphQL Endpoint (default: /graphql)
browser- - Path to the browser that will be used by
mesh serveto open a playground window in development mode This feature can be disabled by passing
String) - Title of GraphiQL Playground
String) - Configure Express Proxy Handling Learn more (opens in a new tab)
Int) - Enable and define a limit for Request Batching (opens in a new tab)
SDK generation configurations. Read more
Object) - Use this only if you don't want to use
documentsfor SDK, and let Mesh generate them for you:
Provide a query or queries for GraphQL Playground, validation and SDK Generation. The value can be
the file path, glob expression for the file paths or the SDL.
.tsx files are supported. Read more
Path to a custom W3 Compatible Fetch Implementation. Example
Logger instance that matches
Console interface of NodeJS.
Merge method. Either 'stitching', 'bare' or 'federation' are acceptable.
Allow connections to an SSL endpoint without certificates (type:
GraphQL Code Generator Configuration. Read more
Loads specific require extensions before running the GraphQL Code Generator and reading the configuration.