@galaxy-stack/orbit-graphql-federation 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9783,12 +9783,13 @@ class FederationSchemaBuilder extends SchemaBuilder {
9783
9783
  const mutationType = schema.getMutationType();
9784
9784
  const subscriptionType = schema.getSubscriptionType();
9785
9785
  const _Any = GraphQLString;
9786
+ let federatedSchemaRef;
9786
9787
  const _Service = new GraphQLObjectType({
9787
9788
  name: "_Service",
9788
9789
  fields: {
9789
9790
  sdl: {
9790
9791
  type: GraphQLString,
9791
- resolve: () => this.generateFederatedSDL(schema)
9792
+ resolve: () => this.generateFederatedSDL(federatedSchemaRef ?? schema)
9792
9793
  }
9793
9794
  }
9794
9795
  });
@@ -9849,11 +9850,12 @@ class FederationSchemaBuilder extends SchemaBuilder {
9849
9850
  name: "Query",
9850
9851
  fields: federatedQueryFields
9851
9852
  });
9852
- return new GraphQLSchema({
9853
+ federatedSchemaRef = new GraphQLSchema({
9853
9854
  query: federatedQuery,
9854
9855
  mutation: mutationType || undefined,
9855
9856
  subscription: subscriptionType || undefined
9856
9857
  });
9858
+ return federatedSchemaRef;
9857
9859
  }
9858
9860
  generateFederatedSDL(schema) {
9859
9861
  let sdl = printSchema(schema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-stack/orbit-graphql-federation",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "GraphQL Federation support for Orbit framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "graphql": "^16.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@galaxy-stack/orbit-core": "workspace:*",
18
- "@galaxy-stack/orbit-graphql": "workspace:*"
17
+ "@galaxy-stack/orbit-core": "^0.1.3",
18
+ "@galaxy-stack/orbit-graphql": "^0.1.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "graphql": "^16.9.0",