Skip to Content
Mesh

OData / Microsoft Graph

This handler allows you to load remote OData metadata/schema as GraphQL Schema.

npm i @omnigraph/odata

Now, you can use it directly in your Mesh config file:

mesh.config.ts
import { defineConfig } from '@graphql-mesh/compose-cli' import { loadODataSubgraph } from '@omnigraph/odata' export const composeConfig = defineConfig({ subgraphs: [ { sourceHandler: loadODataSubgraph('TripPin', { endpoint: 'https://services.odata.org/TripPinRESTierService/' }) } ] })
Last updated on