OData / Microsoft Graph
Discover how to load remote OData metadata as GraphQL Schema with GraphQL Mesh's OData/Microsoft Graph handler. Get started with a few simple steps!
This handler allows you to load remote OData metadata/schema as GraphQL Schema.
yarn add @omnigraph/odata
pnpm add @omnigraph/odata
Now, you can use it directly in your Mesh config file:
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/'
})
}
]
})