• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yaacovCR / graphql-tools-fork / 162 / 1
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: v9.0.1
DEFAULT BRANCH: master
Ran 04 Nov 2019 07:50PM UTC
Files 82
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2019 07:47PM UTC coverage: 91.404% (-0.1%) from 91.515%
GRAPHQL_VERSION='^14.0' TYPES_GRAPHQL_VERSION='^14.0'

push

travis-ci

yaacovCR
refactor(subschemas): improve delegation workflow

- refine SubschemaConfig type to allow using identical objects to merge different schemas and then delegate to those subschemas.
- consolidate SchemaExecutionConfig type into SubschemaConfig type.
- add separate subschemas, types, and typeDefs options to mergeSchemas to highlight different things that are being merged -- schemas options still works.
- allow wrapSchema to take just a subschemaConfig as an argument, will apply the subschemas execution configuration and transforms to yield the appropriate delegating outer schema.
- add rootValue to delegateToSchema options and move all other newish delegateToSchema options within the subSchemaConfig. rootValue is parallel in some ways to context, so ok to have at top level.
- rename SubSchemaConfig => SubschemaConfig
-
- remove support for renaming types based on modification of an outer schema, this breaks when inner type is renamed and outer schema has interface not defined in inner schema. ExpandAbstractTypes currently handles this use case, but works only when the delegated result contains the correct typename. An alternative workflow would be to add the outer interface prior to renaming to each subschema and then merge interfaces.
- remove resolversTransformResult property from transforms, no longer being used.
- update docs!

This change paves the way for annotating a result with a reference to the delegated schema. With a modified merged resolver, an outer merged schema could check to see if it received a partial result of a merged type and then merge the partial result with the necessary additional schemas defining the type.

1112 of 1290 branches covered (86.2%)

Branch coverage included in aggregate %.

2429 of 2584 relevant lines covered (94.0%)

553.68 hits per line

Source Files on job 162.1 (GRAPHQL_VERSION='^14.0' TYPES_GRAPHQL_VERSION='^14.0')
  • Tree
  • List 0
  • Changed 40
  • Source Changed 9
  • Coverage Changed 40
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 49
  • Travis Job 162.1
  • 1b14c837 on github
  • Prev Job for GRAPHQL_VERSION='^14.0' TYPES_GRAPHQL_VERSION='^14.0' on forkPR (#160.1)
  • Next Job for GRAPHQL_VERSION='^14.0' TYPES_GRAPHQL_VERSION='^14.0' on forkPR (#165.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc