Create a mesh with multiple sources

This video helps developers understand how to create a mesh with multiple sources in API Mesh for Adobe Developer App Builder. This video shows how to create a mesh with multiple sources and identify errors. For more details and code samples, visit Create a mesh.

Who is this video for?

  • Anyone who is new to API mesh
  • Developers interested in combining multiple API and GraphQL sources

Video content

  • How to use transforms to modify the default source schema
  • How to troubleshoot errors, such as name conflicts, schema availability, and other schema syntax issues
  • Updating your mesh with a modified configuration

Create the json configuration file

API Mesh uses a JSON configuration file to define your source handlers. The JSON file contains a sources array that contains the sources for your mesh. Here is an example of a mesh with multiple sources.

{
"meshConfig": {
    "sources": [
      {
        "name": "Commerce",
        "handler": {
          "graphql": {
            "endpoint": "https://venia.magento.com/graphql/"
          }
        }
      },
      {
        "name": "Example",
        "handler": {
          "graphql": {
            "endpoint": "https://www.example.com/graphql/"
          }
        }
      }
    ]
  }
}

Useful API Mesh resources

recommendation-more-help
3a5f7e19-f383-4af8-8983-d01154c1402f