Skip to content

Commit

Permalink
Merge pull request #5996 from neo4j/fix-subscriptions-federations
Browse files Browse the repository at this point in the history
Fix missing schema model on subscription engines init
  • Loading branch information
angrykoala authored Feb 11, 2025
2 parents 5a69d4b + a5962ea commit 944727f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hip-actors-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@neo4j/graphql": patch
---

Fix error "SchemaModel not available on subscription mechanism" with some subscriptions engines when used with Federation
2 changes: 1 addition & 1 deletion packages/graphql/src/classes/Neo4jGraphQL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Neo4jGraphQL {
public async getSubgraphSchema(): Promise<GraphQLSchema> {
if (!this.subgraphSchema) {
this.subgraphSchema = this.generateSubgraphSchema();

await this.subgraphSchema; // Avoids race condition with engine init
await this.subscriptionMechanismSetup();
}

Expand Down

0 comments on commit 944727f

Please sign in to comment.