Skip to content

@graphql-tools/delegate@7.0.10

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Feb 17:17
· 3203 commits to master since this release
179dd27

Patch Changes

  • 2492665: Deprecates the MergeTypeConfig.computedFields setting (with backwards-compatible warning) in favor of new computed field configuration written as:

    merge: {
      MyType: {
        fields: {
          myComputedField: {
            selectionSet: '{ weight }',
            computed: true,
          }
        }
      }
    }

    A field-level selectionSet specifies field dependencies while the computed setting structures the field in a way that assures it is always selected with this data provided. The selectionSet is intentionally generic to support possible future uses. This new pattern organizes all field-level configuration (including canonical) into a single structure.