Release/file support for graphql handler#305
Merged
Merged
Conversation
[Backmerge] - Release/5.6.5
File support for graphql handler (alpha version) - CEXT-6144
File support for graphql handler (beta version) - CEXT-6144
AjazSumaiya
approved these changes
May 14, 2026
kmaschi
approved these changes
May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
File support for graphql handler
Description
Graphql file path added to source attribute in graphql handler, will build the mesh with mentioned schema file
Related Issue
CEXT-6144
Motivation and Context
When GraphQL introspection is disabled for a source, the schema needs to be supplied manually for mesh generation. To improve readability and maintenance of large schema definitions, support for external schema files has been added, enabling schemas to be organized separately and mapped through the config file.
How Has This Been Tested?
Test this with a graphql source with disabled introspection
(endpoint: https://test-graphql-limit.apimesh-adobe-test.workers.dev/graphql)
Add the following files and using the cli create or update or run mesh.json
mesh.json
{ "meshConfig": { "sources": [ { "name": "QueryLimit", "handler": { "graphql": { "endpoint": "https://test-graphql-limit.apimesh-adobe-test.workers.dev/graphql", "source": "./schemas/schema.graphql" } } } ] } }schemas/schema.graphql
`type Query {
users: [User!]!
user(id: ID!): User
posts: [Post!]!
post(id: ID!): Post
}
type User {
id: ID!
name: String!
age: Int!
posts: [Post!]!
}
type Post {
id: ID!
title: String!
body: String!
author: User!
comments: [Comment!]!
}
type Comment {
id: ID!
text: String!
post: Post!
author: User!
}`
Result:
The mesh build should successful
Screenshots (if appropriate):
Types of changes
Checklist: