Skip to content

Can GraphQL Mesh shows documentation via Altair or Voyager? #1693

Answered by ardatan
varasinp asked this question in Q&A
Discussion options

You must be logged in to vote

You can provide any kind of express middleware in ".meshrc.yml" under "handlers" property of "serve".

https://graphql-mesh.com/docs/recipes/as-gateway

https://github.com/APIs-guru/graphql-voyager#express

in .meshrc.yml

serve:
   handlers:
      - path: /voyager
         method: GET
         handler: ./voyager.js

in voyager.js

const { express: voyagerMiddleware } = require('graphql-voyager/middleware');

module.exports = voyagerMiddleware({ endpointUrl: '/graphql' });

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@varasinp
Comment options

@varasinp
Comment options

@ardatan
Comment options

Answer selected by varasinp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants