Skip to content

Extending Schema with type dependency #415

Open
@ayyappanramamuniappa

Description

@ayyappanramamuniappa

I am new to graphql and I have some question from your examples. I tried the following example for different schema .

I am trying to stitch two schemas to one schema. I am getting comment from another service through introspection.

But when I extend the schema, I get an schema validation error that Article type is unknown when I extend schema using builder.

val extensions =
	gql"""
	extend type Article {
	comments: [Comment]! @loadComments
	}
	
	type Comment {
	  text: String!
	  author: CommentAuthor!
	}
	
	type CommentAuthor {
	  name: String!
	  lastComment: Comment
	}
	"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions