Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge graphql-tools-fork into v5 #1307

Merged
merged 249 commits into from Mar 27, 2020
Merged

merge graphql-tools-fork into v5 #1307

merged 249 commits into from Mar 27, 2020

Commits on Mar 26, 2020

  1. Fix tests

    graphql-subscriptions 1.1.0 only adds listeners after first call to next(), see apollographql/graphql-subscriptions#148
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    91b150e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    8eb0359 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    d783d78 View commit details
    Browse the repository at this point in the history
  4. lint

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d7ce4e8 View commit details
    Browse the repository at this point in the history
  5. feat(errors): Pass through all possible errors.

    Use new relocatedError function to update the original GraphQLErrors
    with the new path. Addresses ardatan#743, ardatan#1037, ardatan#1046,
    apollographql/apollo-server#1582.
    hwillson authored and yaacovCR committed Mar 26, 2020
    Copy the full SHA
    97d8fe6 View commit details
    Browse the repository at this point in the history
  6. fix(stitching): fix regression

    Refactoring in v5.1.0 introduced a regression when nullable root fields returned
    null without errors.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9fda499 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    c7f82ac View commit details
    Browse the repository at this point in the history
  8. fix(stitching): nested enums

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    c4ddfcc View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    c662bea View commit details
    Browse the repository at this point in the history
  10. chore(lint)

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    21c1486 View commit details
    Browse the repository at this point in the history
  11. fix(stitching): serialize/deserialize enum/custom scalar values

    BREAKING CHANGE: This change allows enums and custom scalars to be used as arguments
    within merged schemas. It also fixes seralization and deserialization
    more generally within merged schemas. If an implementation is available
    for a custom scalar within a merged schema (i.e., the schema is local),
    the internal representation will be available for use with stitching.
    Previously, the merged schema internally used the serialized version.
    stefanprobst authored and yaacovCR committed Mar 26, 2020
    Copy the full SHA
    ddbeb9a View commit details
    Browse the repository at this point in the history
  12. docs: update index

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    59418ed View commit details
    Browse the repository at this point in the history
  13. docs(dedeprecate)

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d627b3c View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    c6567e7 View commit details
    Browse the repository at this point in the history
  15. Copy the full SHA
    169fad4 View commit details
    Browse the repository at this point in the history
  16. fix(stitching): fix legacy custom scalar recreation to more closely m…

    …atch pre-v6.0.1 functionality.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    5abdaf0 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    4e6616e View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    773f765 View commit details
    Browse the repository at this point in the history
  19. Copy the full SHA
    6600d5d View commit details
    Browse the repository at this point in the history
  20. chore(lint)

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    b41896f View commit details
    Browse the repository at this point in the history
  21. Copy the full SHA
    46083a2 View commit details
    Browse the repository at this point in the history
  22. Copy the full SHA
    5f6a5f3 View commit details
    Browse the repository at this point in the history
  23. fix(stitching): do not convert falsy values to null.

    Closes #10. Renamed resultObject to result to remind code/coders that the result may be a scalrar, not an object, and may be falsy without being equivalent to null.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    dd5abab View commit details
    Browse the repository at this point in the history
  24. Copy the full SHA
    39fc007 View commit details
    Browse the repository at this point in the history
  25. Copy the full SHA
    230af75 View commit details
    Browse the repository at this point in the history
  26. feat(stitching): allow delegateToSchema, mergeSchemas and transformSc…

    …hema to take remote schema configurations as parameters
    
    This removes the need for makeRemoteExecutableSchema, removing an unnecessary layer of schema delegation.
    
    This change introduces a RemoteGraphQLSchema type which consists of a GraphQLSchema object annotated with link, fetcher, or dispatcher properties that can be used by delegateToSchema to access the remote schema. The dispatcher function takes the graphql context eventually passed to delegateToSchema as an argument and returns a link or fetcher function.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    490e433 View commit details
    Browse the repository at this point in the history
  27. Copy the full SHA
    c5571fb View commit details
    Browse the repository at this point in the history
  28. feat(transformers): TransformQuery transformer adds errorPathTransfor…

    …mer property to properly return errors from transformed queries.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    194e467 View commit details
    Browse the repository at this point in the history
  29. feat(transforms): add dedicated filterSchema function to allow schema…

    … filtering without a layer of delegation
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    c3d7cae View commit details
    Browse the repository at this point in the history
  30. feat(transforms): map object fields to new structures

    Provides building blocks to allow transforming object types by wrapping a field with a new object type or by extracting subfields from a field of a certain object type into the parent:
    
     = Adds new ExtendSchema transformer to extend the wrapping schema within transformSchema with new fields.
     = Adds new functions that create resolvers that can wrap, extract, and rename merged fields, for use within the ExtendSchema transformer
     = Adds new MapFields transformer to allow transformation of field nodes within a request by object type and field name.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    8c82178 View commit details
    Browse the repository at this point in the history
  31. fix(stitching): fixes error mapping with ExtendSchema transform. Also…

    …, refactors!
    
    = uses createMergedResolver instead of individual wrapFields, extractFields, and renameFields functions. These functionss likely should be deprecated or at least renamed, as their function (creating specialized resolvers for merging) is not clear from current names. createMergedResolver works with multiple layers of wrapping, extracting, or even a combination thereof.
    
    = exports new extractFields function for use within a fieldNodeTransformerMap when wrapping fields.
    
    = allows specification of the fieldNodeTransformerMap directly on ExtendSchema transform so that separate MapFields transform not required. Under the hood, the ExtendSchema transform calls its own MapFields transform.
    
    = fixes file structure; as most of the recent new functionality is stitching functionality rather than transform functionality, even though it relies on the new ExtendSchema and MapFields transforms.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    1c25e12 View commit details
    Browse the repository at this point in the history
  32. Copy the full SHA
    9af1ec5 View commit details
    Browse the repository at this point in the history
  33. fix(stitching): input fields without default value

    Input fields without default values should not have default values of
    null after transformation -- they should still have no default values.
    Closes #15.
    bconnorwhite authored and yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d5e54ad View commit details
    Browse the repository at this point in the history
  34. fix(transforms): support custom scalar input variables on root fields…

    … when transforming.
    
    Fixes #18.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a88f667 View commit details
    Browse the repository at this point in the history
  35. chore(deps): upgrade dependencies.

    Required changes to comply with new type definitions as graphql changes from flow to typescript.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    339c569 View commit details
    Browse the repository at this point in the history
  36. Copy the full SHA
    bde8e53 View commit details
    Browse the repository at this point in the history
  37. fix(generate): addResolversToSchema should update enums and scalars o…

    …f original schema.
    
    Closes #19.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    80d196c View commit details
    Browse the repository at this point in the history
  38. fix(healSchema): healing schema requires reparsing default field valu…

    …es as types are updated.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    e3b04d0 View commit details
    Browse the repository at this point in the history
  39. fix(healSchema): revert most recent change

    healSchema cannot automatically include reparsing of default values.
    
    Automatic reparsing assumes that the default value corresponds to the old type, but that may not always be the case, and when it is not the case, the default value will be lost if automatic reparsing is implemented as in 6.3.6.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    71e2459 View commit details
    Browse the repository at this point in the history
  40. Copy the full SHA
    49ee536 View commit details
    Browse the repository at this point in the history
  41. Copy the full SHA
    bd2363b View commit details
    Browse the repository at this point in the history
  42. Copy the full SHA
    ad4e23a View commit details
    Browse the repository at this point in the history
  43. Copy the full SHA
    ef14f8d View commit details
    Browse the repository at this point in the history
  44. Copy the full SHA
    6f313bd View commit details
    Browse the repository at this point in the history
  45. chore: label blocking issue

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a2f407f View commit details
    Browse the repository at this point in the history
  46. feat(cloning): export methods to shallow clone types and directives a…

    …nd deep clone schemas
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    11104f0 View commit details
    Browse the repository at this point in the history
  47. chore(deps): drop support for graphql 14.0 and 14.1

    as refactoring relies heavily on toConfig
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    771f310 View commit details
    Browse the repository at this point in the history
  48. refactor(transforms): export wrapSchema

    wrapSchema better describes what transformSchema does, it wraps requests to initial schema with request and response transforms, including any outer schema modifications that themselves can modify the response.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    faad819 View commit details
    Browse the repository at this point in the history
  49. feat(filterSchema): provide type argument to type filter

    also removes unnecessary checks considering defaults provides
    
    lint: default values obviate checks
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    c6b5470 View commit details
    Browse the repository at this point in the history
  50. Copy the full SHA
    c7f3a13 View commit details
    Browse the repository at this point in the history
  51. fix(cloneSchema): healSchema requires a new array for object interfac…

    …es and union types. toConfig provides a new map for fields, but not new arrays.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    538461e View commit details
    Browse the repository at this point in the history
  52. refactor: rewrite transforms visitSchema to use cloneSchema and healT…

    …ypeMap.
    
    Required changes to healTypeMap to handle removed types and/or fields.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    b55bc82 View commit details
    Browse the repository at this point in the history
  53. Copy the full SHA
    cf69bd8 View commit details
    Browse the repository at this point in the history
  54. refactor: use graphql toConfig() instead of fieldToFieldConfig

    toConfig does recreate the field map even though it does not recreate object interfaces and union types arrays.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    ce77e4d View commit details
    Browse the repository at this point in the history
  55. refactor: use cloneType and healTypeMap within mergeSchemas instead o…

    …f recreateType.
    
    Requires modifying healTypeMap to handle stub types.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    ecf3066 View commit details
    Browse the repository at this point in the history
  56. refactor: rename healTypeMap to healTypes

    As does not just heal typeMap, also heals types within directives.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d52e4f6 View commit details
    Browse the repository at this point in the history
  57. refactor: organize utils

    rename cloneSchema to clone
    move healSchema to new file heal
    break out SchemaDirectiveVisitor and visitSchema from SchemaVisitor
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    567967f View commit details
    Browse the repository at this point in the history
  58. refactor: rename pruneTypeMap

    to fit with healTypes
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    0854ed5 View commit details
    Browse the repository at this point in the history
  59. Copy the full SHA
    cfc3db7 View commit details
    Browse the repository at this point in the history
  60. feat(visitSchema): export consolidated visitSchema method

    Takes an object of type SchemaVisitorDef, a SchemaVisitor class instance, an array of either, or a function that returns the schema visitor spec.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    68bf8cb View commit details
    Browse the repository at this point in the history
  61. Copy the full SHA
    1b49371 View commit details
    Browse the repository at this point in the history
  62. Copy the full SHA
    bf39855 View commit details
    Browse the repository at this point in the history
  63. fix(visitSchema): visitSchema must reinitialize private variables whe…

    …n updating interfaces.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    0150e02 View commit details
    Browse the repository at this point in the history
  64. Copy the full SHA
    0b2ddb8 View commit details
    Browse the repository at this point in the history
  65. Copy the full SHA
    0eec7b5 View commit details
    Browse the repository at this point in the history
  66. fix(release): broken npmignore

    due to incomplete npmignore whitelist
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    aa5728b View commit details
    Browse the repository at this point in the history
  67. refactor(delegateToSchema): refactor away delegateToRemoteSchema

    Allow delegateToSchema to take remote execution options or a schema execution config containg remote execution options.
    
    Remove unnecessary RemoteSchemaExecutionConfig type.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    3965da5 View commit details
    Browse the repository at this point in the history
  68. Copy the full SHA
    39fe30b View commit details
    Browse the repository at this point in the history
  69. Copy the full SHA
    4c78947 View commit details
    Browse the repository at this point in the history
  70. Copy the full SHA
    e8ee6bb View commit details
    Browse the repository at this point in the history
  71. refactor(schemaRecreation): deprecate most of schema recreation now t…

    …hat healTypes operational
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    01d99f4 View commit details
    Browse the repository at this point in the history
  72. chore(lint)

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    f2d9b1c View commit details
    Browse the repository at this point in the history
  73. Copy the full SHA
    52ca30f View commit details
    Browse the repository at this point in the history
  74. fix(remote schemas): must add __typename to remote query to properly …

    …resolve interfaces.
    
    Error will occur only when querying directly on the remote schema, as delegateToSchema automatically adds type names.
    
    addTypenameToAbstract is necessary for resolveType to work in the parent schema just as checkResultAndHandleErrors is necessary for resolve to work!
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    3f79614 View commit details
    Browse the repository at this point in the history
  75. Copy the full SHA
    b4df9ad View commit details
    Browse the repository at this point in the history
  76. Copy the full SHA
    3352229 View commit details
    Browse the repository at this point in the history
  77. Copy the full SHA
    19295f3 View commit details
    Browse the repository at this point in the history
  78. feat(utils): getResolversFromSchema

    add function to get graphql-tools style resolvers map from an existing schema, parallels graphql-js toConfig.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9cb29df View commit details
    Browse the repository at this point in the history
  79. Copy the full SHA
    686d9d5 View commit details
    Browse the repository at this point in the history
  80. Copy the full SHA
    6572568 View commit details
    Browse the repository at this point in the history
  81. Copy the full SHA
    50d8250 View commit details
    Browse the repository at this point in the history
  82. Copy the full SHA
    9e87082 View commit details
    Browse the repository at this point in the history
  83. fix(transforms): to properly allow chaining.

    BREAKING CHANGE:
    
    Result transforms should be reversed, so that multiple request and result transforms can be properly executed.
    
    Request and result transforms must be inverted when transforming a schema, as these transforms work to move from the final schema back to the original schema.
    
    These CHANGES have the potential to be BREAKING.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a9a6ff6 View commit details
    Browse the repository at this point in the history
  84. Copy the full SHA
    c3abc07 View commit details
    Browse the repository at this point in the history
  85. Copy the full SHA
    52128a3 View commit details
    Browse the repository at this point in the history
  86. feat(RenameTypes): remove extra result traversal

    RenameTypes transform now relies on wrapping the resolveType methods within the outer schema instead of using transformResult. Required changing the resolveFromParentTypename to return a string instead of an object, as the string may need to be renamed before it corresponds to a type in the outer schema.
    
    So that the transform can be used as a operation transform as well, the transformResult function is preserved, but a new flag is used to skip result transformation when the resolvers will be responsible for transforming the result, i.e. when used with transformSchema/wrapSchema.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9a5b06a View commit details
    Browse the repository at this point in the history
  87. fix(docs): use delegateToSchema

    instead of info.mergeInfo.delegateToSchema
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    eca442f View commit details
    Browse the repository at this point in the history
  88. Copy the full SHA
    8c9f6cd View commit details
    Browse the repository at this point in the history
  89. Copy the full SHA
    70fceca View commit details
    Browse the repository at this point in the history
  90. fix(deps): correct graphql peer dependency.

    Last npm-check-updates update upgraded the peer dependency instead of dev dependency.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    47cbda7 View commit details
    Browse the repository at this point in the history
  91. refactor(mergeSchemas): consolidate code

    Remove unnecessary MergeTypeCandidatesResult type.
    Use new SchemaLikeObject type.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    24d17bb View commit details
    Browse the repository at this point in the history
  92. refactor(mergeSchemas): remove variable

    Remove unnecessary variable.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a1296f3 View commit details
    Browse the repository at this point in the history
  93. refactor(utils): consolidate more utils.

    Consolidate forEachField functions.
    Move forEachField and forEachDefaultValue to utils folder.
    Change forEachField, forEachDefaultValue and mergeDeep to no longer use default exports to fit style of other utils files.
    
    TODO: streamline use/nonuse of default exports within entire library.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    775747e View commit details
    Browse the repository at this point in the history
  94. feat(mergeSchemas): allow transform specification

    Allow specification of transforms directly within mergeSchemas.
    Allows for removal of an additional round of delegationg when merging transformed schemas.
    Requires schema wrapping prior to registering a type candidate for merge.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    15c24eb View commit details
    Browse the repository at this point in the history
  95. 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.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d978ef6 View commit details
    Browse the repository at this point in the history
  96. fix(stitching): pass along more errors

    partially addresses #26.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d7e7b8b View commit details
    Browse the repository at this point in the history
  97. fix(stitching): change merged result format

    Merged results that are null may carry errors from deeper within the query tree. Previous merged result format carries this metadata within a property on the result, but null has no properties.
    
    New result format differs only in that a null result is transformed to an object with a special property signifying that the result was null, so that metadata can be added in the same way.
    
    When merging within defaultMergedResolver, all null checks must check for this property as well. Because a result may be changed during annotation, the function is essentially no longer annotating only/i.e. modifying the object in place, and so it has been renamed to reflect that, with forEach changed to map when processing a list.
    
    Fixes #26.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d2173f3 View commit details
    Browse the repository at this point in the history
  98. refactor(handleResult): remove some extra logic checks.

    Streamlines code to skip a few extra checks with full recursive version, i.e. composite types do not require parsing.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    300f86d View commit details
    Browse the repository at this point in the history
  99. refactor(handleNull): refactor to handleErrors

    Consolidates a bit more code within checkResultAndHandleErrors.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    743bc30 View commit details
    Browse the repository at this point in the history
  100. Copy the full SHA
    18c03b8 View commit details
    Browse the repository at this point in the history
  101. Copy the full SHA
    fb45bbb View commit details
    Browse the repository at this point in the history
  102. Copy the full SHA
    52104a9 View commit details
    Browse the repository at this point in the history
  103. refactor(stitching): resolveFromParentTypename

    streamline arguments
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    16fa015 View commit details
    Browse the repository at this point in the history
  104. Copy the full SHA
    7b33988 View commit details
    Browse the repository at this point in the history
  105. Copy the full SHA
    1ad6015 View commit details
    Browse the repository at this point in the history
  106. fix(stitching): add test

    RenameObjectFields and RenameRootFields should work when used together.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a4ec882 View commit details
    Browse the repository at this point in the history
  107. fix(transforms): cloneSchema prior to transformSchema

    This allows individual schema transforms to save intermediate schema representations even if other schema transformations modify them in place.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a5a9a1a View commit details
    Browse the repository at this point in the history
  108. refactor(TransformObjectFields)

    visitSchema in this fork modifies schemas in place, but this change makes code more explicit that final schema is being used as base for transformRequest.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    5b1790d View commit details
    Browse the repository at this point in the history
  109. Copy the full SHA
    8d5e29f View commit details
    Browse the repository at this point in the history
  110. Copy the full SHA
    aa79488 View commit details
    Browse the repository at this point in the history
  111. refactor(addTypenameToAbstract)

    Remove unnecessary search. Duplicate typename fields are also included elsewhere!
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    8dbc188 View commit details
    Browse the repository at this point in the history
  112. refactor(FilterToSchema)

    Use graphql TypeInfo and visitWithTypeInfo to keep track of types during traversal.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    06f9d5e View commit details
    Browse the repository at this point in the history
  113. Copy the full SHA
    ca8382a View commit details
    Browse the repository at this point in the history
  114. refactor(fieldNodes)

    Move renameFieldNode, wrapFieldNode, and collectFields into utils.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    ba609d2 View commit details
    Browse the repository at this point in the history
  115. fix(stitching): improve error proxying for lists

    required significant refactoring of error handling
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    cf12fdf View commit details
    Browse the repository at this point in the history
  116. fix(WrapType): fix root type edge case

    Allow wrapping root types even when a root type value is not defined for the query.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    db10787 View commit details
    Browse the repository at this point in the history
  117. fix(handleList): missing context

    linter thought it referred to mocha context...
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    378e8b5 View commit details
    Browse the repository at this point in the history
  118. fix(stitching): wrapping and hoisting field transforms

    BREAKING CHANGE:
    Previous version of createMergedResolver did not work with multiple layers of field wrapping.
    extractFields was not working, deprecated in favor of hoistFieldNodes.
    createMergedResolver now relies on two helper functions, dehoistResult, complement to hoistFieldNoes, and unwrapResult, complement to wrapFieldNodes.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    332c758 View commit details
    Browse the repository at this point in the history
  119. refactor(transforms): streamline with upstream

    remove all uses of fieldToFieldConfig in favor of type.toConfig()
    will support extensions for all graphql objects
    allow renaming of root and object fields without requiring field argument if field unchanged.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    c95345a View commit details
    Browse the repository at this point in the history
  120. refactor(createMergedResolver)

    Precompile resolver at build time.
    Default delimeter to '__gqtlf__'.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    738f129 View commit details
    Browse the repository at this point in the history
  121. refactor(tests)

    Update field name in tests to better reflect what is being tests.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    2d6e9c9 View commit details
    Browse the repository at this point in the history
  122. feat(WrapFields): add new transform

    --WrapFields can wrap a subset of a types fields with any number of wrapping fields and types.
    --fixes createMergedResolver and hoistFields.
    --refactors WrapType to use the underlying more generic WrapFields transform.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    e00d693 View commit details
    Browse the repository at this point in the history
  123. Copy the full SHA
    83d00ac View commit details
    Browse the repository at this point in the history
  124. Copy the full SHA
    90c3565 View commit details
    Browse the repository at this point in the history
  125. lint

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    bb6c443 View commit details
    Browse the repository at this point in the history
  126. fix(filterToSchema): remove map in favor of plain object

    some links (e.g. apollo-upload-client) may expect a plain object with constructor.name === 'Object'
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    e286205 View commit details
    Browse the repository at this point in the history
  127. feat(stitching): enable proxying uploads

    Adds a new scalar for the gateway and a new server to server link that
    allows proxying of remote file uploads using the graphql-upload format.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    6a25db3 View commit details
    Browse the repository at this point in the history
  128. Copy the full SHA
    6252261 View commit details
    Browse the repository at this point in the history
  129. lint

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d13bd2b View commit details
    Browse the repository at this point in the history
  130. Copy the full SHA
    00925cc View commit details
    Browse the repository at this point in the history
  131. refactor(FilterObjectFields)

    questionable improvement in brevity vs clarity
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    472ad97 View commit details
    Browse the repository at this point in the history
  132. Copy the full SHA
    0d4e8eb View commit details
    Browse the repository at this point in the history
  133. Copy the full SHA
    4483f00 View commit details
    Browse the repository at this point in the history
  134. Copy the full SHA
    348cc1b View commit details
    Browse the repository at this point in the history
  135. fix(wrapping): wrapped field names must be unique.

    ...so they can be combined from multiple schemas.
    
    This change also adds use of a delimeter when wrapping fields and fixes specification of the delimeter more broadly, which was not set up appropriately within the dehoist property.
    
    The delimeter can now be specified when using the WrapFields and WrapType transforms.
    
    This change also removes the now unnecessary fromField property, as renaming no longer requires a dedicated resolver now that it just uses aliases.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    dffc7eb View commit details
    Browse the repository at this point in the history
  136. feat(transforms): add HoistField transform

    New HoistField transform allows moving a field on a remote type into a higher level object within the wrapping schema.
    
    The appendFields and filterFields methods from the WrapFIelds transform have been moved to the utils directory and exported; filterFields has been renamed to removeFields to better describe what it does.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    898d421 View commit details
    Browse the repository at this point in the history
  137. refactor(addResolveFunctionsToSchema)

    remove function hiding type checks
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    144548f View commit details
    Browse the repository at this point in the history
  138. refactor(resolvers)

    Remove references to resolve functions in favor of the generic term "resolver."
    
    Retain old exports for backwards compatibility.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    415b5d4 View commit details
    Browse the repository at this point in the history
  139. chore(types)

    new version of typescript and iterall don't play nice with this code
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    bea9d69 View commit details
    Browse the repository at this point in the history
  140. Copy the full SHA
    6033344 View commit details
    Browse the repository at this point in the history
  141. refactor(hoisting)

    No need to prealias when wrapping if using deep merge instead of assign
    to merge types from multiple schemas, as the query tree should always be
    unique.
    
    If not prealiasing when wrapping, wrapping does not require a delimeter,
    and so hoisting does not require a prefix either as all delimeters are
    used only when hoisting.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    285274d View commit details
    Browse the repository at this point in the history
  142. fix(stitching): custom scalars/enums

    Provide support for overriding scalars or enums used within input objects.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    0db56d7 View commit details
    Browse the repository at this point in the history
  143. refactor(testUpload)

    Simply example usage within test.
    
    Inclusion of the GraphQLUpload scalar within the resolver map is only necessary when merging an executable "local" subschema, as if the subschema has the original GraphqlUpload scalar defined, it will throw when attempting to serialize after it is merged into the gateway. The custom GraphqlUpload scalar can be used in that case to avoid that either within the local subschema or within the gateway.
    
    In this case, the subschema is remote, and so the subschema custom scalar is imported with the default serialize method that does not throw.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9e5fc5b View commit details
    Browse the repository at this point in the history
  144. refactor(stitching): type merging

    simplifies logic around type merging to automatically merge types that have merging resolvers specified.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    e51d11f View commit details
    Browse the repository at this point in the history
  145. Copy the full SHA
    0bd4528 View commit details
    Browse the repository at this point in the history
  146. fix(stitching): do not make sync delegation async

    delegateToSchema now returns a synchronous result when possible rather
    than always returning a promise.
    merging types is also performed synchronously when possible.
    
    Fixes #36.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    491c9dd View commit details
    Browse the repository at this point in the history
  147. fix(healing): empty types should be pruned even if fields of those ty…

    …pes still exist
    
    Fixes #37.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    4f3a0b7 View commit details
    Browse the repository at this point in the history
  148. feat(stitching): add returnType option to delegateToSchema

    facilitates proxying from objects to lists or possibly otherwise incompatible schemas, see #33.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    bcb04ba View commit details
    Browse the repository at this point in the history
  149. feat(stitching): export createDelegatingRequest and delegateRequest m…

    …ethods.
    
    May be useful for use with dataloaders or memoization.
    
    See ardatan#724
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    3fecf4e View commit details
    Browse the repository at this point in the history
  150. refactor(ResolveFunctions)

    complete rename to Resolvers
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    2b3896f View commit details
    Browse the repository at this point in the history
  151. refactor(mergeTypes): provide flag

    Allows specification that type merging is only performed in a wrapping schema without overriding info object.
    
    delegateToSchema will likely be used to obtain additional fields from subschemas, but only the initial wrapping delegateToSchema call should mergeTypes, otherwise type merging will never conclude.
    
    Previously this was done by creating a new info object.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9d74412 View commit details
    Browse the repository at this point in the history
  152. refactor(stitching)

    - Default delegateToSchema operation to the original operation for root fields and query otherwise.
    - Change mergeTypes option to skipTypeMerging to reverse default so that skipTypeMerging should be specified for mergeTypeResolvers but can be omitted for stitching on gateway
    - serialize original variable values so that they can be ommited by default
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    3a23a63 View commit details
    Browse the repository at this point in the history
  153. fix(transforms): refactor TransformRootFields to allow flexible trans…

    …form ordering
    
    Fixes #27, now possible because info object is not modified, see 1676ab0
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    8754452 View commit details
    Browse the repository at this point in the history
  154. Copy the full SHA
    60e04d6 View commit details
    Browse the repository at this point in the history
  155. fix(delegateToSchema): standardize args format

    now that all directly proxied args are serialized automatically, including variables, appropriate to standardize args passed to
    delegateToSchema.
    
    Previously, the typeName would be inferred from the proxy target, but serialization would be according to the gateway schema if the type names matched. This would introduce a lot of edge cases and was only necessary as a workaround to facilitate serialization of variables.
    
    Now we can standardize as follows: args format is the internal representation of the proxy target schema. By default, local schemas internal representation will be imported, so that local schema custom enums/scalars do not require manual serialization. For remote schemas should, the internal and external representation is the same, so this is the same as the external representation. If the gateway introduces a new internal representation, args must be converted to the old internal representation manually.
    
    addresses #34
    reverts fd1bd8f#diff-06b180be3290dd53bea4c1c98c9dfdd2
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    54b6a9c View commit details
    Browse the repository at this point in the history
  156. Copy the full SHA
    dedb1ae View commit details
    Browse the repository at this point in the history
  157. chore(deps): upgrade deps

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    cefa4db View commit details
    Browse the repository at this point in the history
  158. refactor(AddArgumentsAsVariables): to AddArguments

    Why add arguments as variables when you can just add as an AST with graphql utility method?
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d5f1a9a View commit details
    Browse the repository at this point in the history
  159. refactor(AddArguments): transform not necessary

    Additional arguments can be handled within initial proxy query creation just like a change in operation or fieldName.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    bd907f9 View commit details
    Browse the repository at this point in the history
  160. refactor(delegateToSchema): organize imports

    Also export useful transform application methods.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    2a142e5 View commit details
    Browse the repository at this point in the history
  161. fix(delegateRequest)

    delegateRequest should take a query created for the targetSchema prior to application of request transforms.
    
    If request batching/caching/manipulation is to be performed, it should be possible to do this before or after request transforms are applied.
    
    Now createRequestFromInfo and the underlying createRequest methods create requests for the targetSchema prior to application of request transforms, and so that allows for a hook there.
    
    Using an Apollo link within the subschema config passed to delegateRequest allows for manipulation after request transforms are applied.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    284eca3 View commit details
    Browse the repository at this point in the history
  162. feat(stitching): support advanced type merging

    Also fixes algorithmic error in type merging in which previously not recorded the correct originating subschema for fields. Nested type merging is now enabled, with tests (hopefully!) to follow.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    aecf495 View commit details
    Browse the repository at this point in the history
  163. fix(stitching): add arguments as variables

    Reverts 3144e41. Adding args as variables can be useful if using only known queries.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    5790c6b View commit details
    Browse the repository at this point in the history
  164. Copy the full SHA
    fb23115 View commit details
    Browse the repository at this point in the history
  165. Copy the full SHA
    6e8cad0 View commit details
    Browse the repository at this point in the history
  166. Copy the full SHA
    5831e92 View commit details
    Browse the repository at this point in the history
  167. feat(merging): check subschema rather than fragment for merging

    allows for memoization as delegation plan no longer dependent on object
    includes additional refactoring and code cleanup
    drawback is that keys for fields cannot be spread across subschemas
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    cd357be View commit details
    Browse the repository at this point in the history
  168. feat(delegation): selectionSet option

    Specifying the selection Set option can indicate that there are no existing arguments.
    
    Use selectionSets instead of fragments for type merging.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    be89138 View commit details
    Browse the repository at this point in the history
  169. Copy the full SHA
    6030507 View commit details
    Browse the repository at this point in the history
  170. fix(merging): fixes merging for non root types

    adds a canonical test
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    3a1560f View commit details
    Browse the repository at this point in the history
  171. refactor(addMockFunctionsToSchema)

    shorten name, retain old name for backwards compatibility
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    86fa099 View commit details
    Browse the repository at this point in the history
  172. refactor(delegationTransforms)

    separate out function, some of these can be precompiled.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    33647bf View commit details
    Browse the repository at this point in the history
  173. docs(transforms):

    add info about gateway and delegation transforms
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    ce834ff View commit details
    Browse the repository at this point in the history
  174. feat(merging): set up default mergeTypeResolver

    mergeType resolver functions can also simply be named resolve.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9e3048c View commit details
    Browse the repository at this point in the history
  175. Copy the full SHA
    6a58a18 View commit details
    Browse the repository at this point in the history
  176. fix(stitching): pass context

    Closes #30. Again. Not sure if eslint will work better than tslint in terms of this.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    89fa13f View commit details
    Browse the repository at this point in the history
  177. fix(generation): allow modification of default scalar types

    Add back support, although still not recommended.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    1c0a27d View commit details
    Browse the repository at this point in the history
  178. chore(linting): switch from tslint to eslint

    permanently fixes #30
    aligns style rules with upstream graphql
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    f89df7f View commit details
    Browse the repository at this point in the history
  179. chore(deps): upgrade dependencies

    remove tslint
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9367443 View commit details
    Browse the repository at this point in the history
  180. chore(remove) tslint

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    6fdb6f6 View commit details
    Browse the repository at this point in the history
  181. chore(lint): pin eslint-plugin-import to 2.22.0

    To avoid windows import/order error,
    
    see: import-js/eslint-plugin-import#1643
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    dde3be7 View commit details
    Browse the repository at this point in the history
  182. chore(prettier): use prettier!

    Run prettier on codebase.
    Add prettier-check to ci workflow.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a99ae19 View commit details
    Browse the repository at this point in the history
  183. Copy the full SHA
    ac51b57 View commit details
    Browse the repository at this point in the history
  184. chore(ci): add releaseonly option

    for manually releasing immediately after testing!
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    cd944d0 View commit details
    Browse the repository at this point in the history
  185. fix(transformSchema): handle schemaConfig objects

    Regression caused by
    3c3a256.
    
    Fixes
    gatsbyjs/gatsby#21443
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    55a15ef View commit details
    Browse the repository at this point in the history
  186. chore(lint): fix a few eslint issues

    instead of disabling a few rules
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    8ff2fda View commit details
    Browse the repository at this point in the history
  187. feat(graphql): initial v15 support.

    Does not yet support v15 specific features that require graphql version checking, i.e. interfaces that implement interfaces, but existing tests should pass.
    A few unnecessary verbose tests deleted.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    a47550a View commit details
    Browse the repository at this point in the history
  188. Copy the full SHA
    9a0186c View commit details
    Browse the repository at this point in the history
  189. Copy the full SHA
    e05dec7 View commit details
    Browse the repository at this point in the history
  190. fix(ci): fix types

    tsc must run successfully for both graphql v14 and v15
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    dcf18bd View commit details
    Browse the repository at this point in the history
  191. Copy the full SHA
    1f1ec07 View commit details
    Browse the repository at this point in the history
  192. Copy the full SHA
    a509d3e View commit details
    Browse the repository at this point in the history
  193. chore(deps): remove unnecessary dependency

    @types/supertest was also hiding need for explicit inclusion of dom within typescript libs to avoid apollo-link-http-common related errors on node, see
    #41 and apollographql/apollo-link#544
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    3b46556 View commit details
    Browse the repository at this point in the history
  194. chore(deps): remove dev dependency

    @types/apollo-upload-client not necessary
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    e00003a View commit details
    Browse the repository at this point in the history
  195. Copy the full SHA
    74ba001 View commit details
    Browse the repository at this point in the history
  196. chore(deps): upgrade deps

    provide cross-compatibility for graphql upload v9 and v10 in exported GraphQLUpload scalar
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    0f50240 View commit details
    Browse the repository at this point in the history
  197. chore(ci): upgrade to nyc

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    21f9509 View commit details
    Browse the repository at this point in the history
  198. Copy the full SHA
    5180bfb View commit details
    Browse the repository at this point in the history
  199. fix(ci): properly polyfill graphql v14.1 and 14.2

    to properly support all graphql versions >= v0.12
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    5fdb8d2 View commit details
    Browse the repository at this point in the history
  200. Copy the full SHA
    02098e0 View commit details
    Browse the repository at this point in the history
  201. Copy the full SHA
    97c584a View commit details
    Browse the repository at this point in the history
  202. Copy the full SHA
    2be5d53 View commit details
    Browse the repository at this point in the history
  203. Copy the full SHA
    8d0e666 View commit details
    Browse the repository at this point in the history
  204. feat(RenameRootTypes): add new transform

    Fixes healing, which previously ignored changes in root types.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    ac81da8 View commit details
    Browse the repository at this point in the history
  205. Copy the full SHA
    bad75aa View commit details
    Browse the repository at this point in the history
  206. Copy the full SHA
    210662c View commit details
    Browse the repository at this point in the history
  207. Copy the full SHA
    86d0a6c View commit details
    Browse the repository at this point in the history
  208. feat(mapSchema): initial version

    mapSchema enables transformation of schema objects without modification of the original schema.
    
    See graphql/graphql-js#1199
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    98964d0 View commit details
    Browse the repository at this point in the history
  209. Copy the full SHA
    5f85c76 View commit details
    Browse the repository at this point in the history
  210. fix(toConfig): touch up types

    toConfig returns an actual configuration, rather than a thunk.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    39f2a28 View commit details
    Browse the repository at this point in the history
  211. fix(mapSchema): fix rewiring

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    fcbb674 View commit details
    Browse the repository at this point in the history
  212. Copy the full SHA
    ed5d610 View commit details
    Browse the repository at this point in the history
  213. Copy the full SHA
    041d2ab View commit details
    Browse the repository at this point in the history
  214. fix(mapSchema): fix rewiring

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    54c04e0 View commit details
    Browse the repository at this point in the history
  215. Copy the full SHA
    a59345b View commit details
    Browse the repository at this point in the history
  216. Copy the full SHA
    61047fd View commit details
    Browse the repository at this point in the history
  217. Copy the full SHA
    62d8554 View commit details
    Browse the repository at this point in the history
  218. Copy the full SHA
    d8eec05 View commit details
    Browse the repository at this point in the history
  219. Copy the full SHA
    121b3e1 View commit details
    Browse the repository at this point in the history
  220. Copy the full SHA
    a1a2129 View commit details
    Browse the repository at this point in the history
  221. fix(mapSchema): rewire directives last

    As they do not take a thunk.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    17229f5 View commit details
    Browse the repository at this point in the history
  222. Copy the full SHA
    fa2a1d4 View commit details
    Browse the repository at this point in the history
  223. Copy the full SHA
    78d454b View commit details
    Browse the repository at this point in the history
  224. refactor(mapSchema)

    Streamline mapper selection for types and directives.
    
    Lays groundwork for additional SchemaMapper object formats, i.e. the resolver map format with specification of individual types/directives by name.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    f0cee57 View commit details
    Browse the repository at this point in the history
  225. Copy the full SHA
    1a6da66 View commit details
    Browse the repository at this point in the history
  226. fix(tests): v12 and v13 extensionASTNode support

    v12 does not support extensionASTNodes
    v13 supports extensionASTNodes for query, mutation, and interface types
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d0c5b78 View commit details
    Browse the repository at this point in the history
  227. refactor(RenameTypes): to use mapSchema

    MapSchema actually can be used to rename scalars -- even to rename specified types -- because rewiring does not modify the original types (as opposed to healing).
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    0317114 View commit details
    Browse the repository at this point in the history
  228. refactor(organize): folders and types

    Use interfaces over tpes whenever possible as per official TypeScript recommendation, so as to support declaration merging.
    
    Separate delegation methods from stitching.
    Rename folders to verbs when possible for consistency.
    Rename transforms folder => wrap.
    Move makeRemoteExecutableSchema to wrap folder, as it wraps a remote schema.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    b8f145a View commit details
    Browse the repository at this point in the history
  229. refactor(npmignore): into package.json

    Use files property within package json to white-list files in straightforward fashion.
    Do not publish extra markdown/images.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9ccb825 View commit details
    Browse the repository at this point in the history
  230. fix(tests): v15 test failure

    using mapSchema rather than visitSchema changes print(schema) order
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d994577 View commit details
    Browse the repository at this point in the history
  231. chore(prettier)

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d09b778 View commit details
    Browse the repository at this point in the history
  232. fix(toConfig): accept field or inputField as arguments

    now that fieldToFieldConfig has been removed, closes #44
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    2abda1b View commit details
    Browse the repository at this point in the history
  233. Copy the full SHA
    f53371f View commit details
    Browse the repository at this point in the history
  234. Copy the full SHA
    279aa27 View commit details
    Browse the repository at this point in the history
  235. chore(prettier)

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    06bc62d View commit details
    Browse the repository at this point in the history
  236. Copy the full SHA
    390f699 View commit details
    Browse the repository at this point in the history
  237. Copy the full SHA
    0116a1b View commit details
    Browse the repository at this point in the history
  238. refactor(transforms): collect wrapping transforms

    move wrapping transforms into separate subfolder
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    96be791 View commit details
    Browse the repository at this point in the history
  239. Copy the full SHA
    41e4271 View commit details
    Browse the repository at this point in the history
  240. refactor(wrap): move wrapping resolvers

    move wrapping resolvers to wrap folder, was placed in old stitching folder because makeRemoteExecutableSchema was in stitching, but makeRemoteExecutableSchema now belongs in the wrap folder, an older method besides wrapSchema/transformSchema of wrapping a schema, specifically for remote schema.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    e8b68e7 View commit details
    Browse the repository at this point in the history
  241. chore(deps): upgrade deps

    and run prettier
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    1f0c77f View commit details
    Browse the repository at this point in the history
  242. chore(git): line endings

    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    6414242 View commit details
    Browse the repository at this point in the history
  243. feat(transforms): add interface transforms

     - adds TransformCompositeFields as generic transform that can function on fields belonging to objects and interfaces
     - refactoring TransformObjectFields to use TransformCompositeFIelds
      - adds TransformInterfaceFields along similar lines
      - adds RenameInterfaceFields and FilterInterfaceFields in parallel to RenameObjectFields and FilterObjectFields
      - make supporting types more generic and export them
      - add test for RenameInterfaceFields
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    29fbb0d View commit details
    Browse the repository at this point in the history
  244. refactor(transforms): remove unnecessary exports

    already contained within transforms folder
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    9da8f60 View commit details
    Browse the repository at this point in the history
  245. Copy the full SHA
    6f1dea4 View commit details
    Browse the repository at this point in the history
  246. fix(delegation): fix argument/variable bugs

    closes #46 and re-closes #44
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    d91447b View commit details
    Browse the repository at this point in the history
  247. fix(stitching): delegateToSchema args specification

    BREAKING CHANGE:
    
    Allow specification of args even with root field transformations. Includes changes to createRequestFromInfo and createRequest signatures and related interfaces, streamlining them to only use the targetOperation and targetFieldName, returning to the original upstream graphql-tools behavior of adding args later as a transform.
    
    args passed to delegateToSchema, however, are still optional. All args passed to delegateToSchema are serialized using the targetSchema serialization, if available.
    yaacovCR committed Mar 26, 2020
    Copy the full SHA
    7dcd006 View commit details
    Browse the repository at this point in the history
  248. Copy the full SHA
    0b1477c View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2020

  1. Copy the full SHA
    3224224 View commit details
    Browse the repository at this point in the history