@takeshape/schema 11.44.0 → 11.45.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.
@@ -28,7 +28,7 @@ function getMissingPropertyRefs(projectSchema, getNamespace) {
28
28
  });
29
29
  }
30
30
  function refToQuery(serviceSchemas, ref) {
31
- const serviceSchema = serviceSchemas[ref.serviceId].schema;
31
+ const serviceSchema = serviceSchemas[ref.serviceId]?.schema;
32
32
  if (serviceSchema) {
33
33
  if (ref.shapeName === 'Query' || ref.shapeName === 'Mutation') {
34
34
  const operation = ref.shapeName === 'Query' ? 'queries' : 'mutations';
@@ -22,7 +22,7 @@ function getMissingPropertyRefs(projectSchema, getNamespace) {
22
22
  });
23
23
  }
24
24
  function refToQuery(serviceSchemas, ref) {
25
- const serviceSchema = serviceSchemas[ref.serviceId].schema;
25
+ const serviceSchema = serviceSchemas[ref.serviceId]?.schema;
26
26
  if (serviceSchema) {
27
27
  if (ref.shapeName === "Query" || ref.shapeName === "Mutation") {
28
28
  const operation = ref.shapeName === "Query" ? "queries" : "mutations";