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

Schema transforms #1463

Merged
merged 7 commits into from
May 13, 2020
Merged

Schema transforms #1463

merged 7 commits into from
May 13, 2020

Commits on May 12, 2020

  1. Configuration menu
    Copy the full SHA
    21f5c77 View commit details
    Browse the repository at this point in the history
  2. add mapping by arguments

    yaacovCR committed May 12, 2020
    Configuration menu
    Copy the full SHA
    e4aa1e0 View commit details
    Browse the repository at this point in the history
  3. add schema transforms

    schema transform functions take a schema as an argument and return a schema, possibly modifying it
    
    a schema transform function can be templated, i.e. one can create a function that takes certain arguments, such as the names of directives that annotate fields of interest, and return a schema transform function that modifies the schema based on the specified annotating directives
    
    this allows one to reuse a schema transform function across projects, allowing for the customization of the schema transform function on a per use basis
    
    schema transform functionc can be called directly on a schema to modify it before use -- makeExecutableSchema can now also be passed an array of schema transform functions, with makeExecutableSchema responsible for performing all schema transformations prior to returning.
    
    Eventually, all schema visitor examples can be rewritten using the schema transform functional API
    
    addresses #1234
    yaacovCR committed May 12, 2020
    Configuration menu
    Copy the full SHA
    dd280b0 View commit details
    Browse the repository at this point in the history
  4. add generic field mapper to SchemaMapper to allow indiscriminate mapp…

    …ing of all fields and input fields
    yaacovCR committed May 12, 2020
    Configuration menu
    Copy the full SHA
    e3957a0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d8f4411 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    acfc90f View commit details
    Browse the repository at this point in the history
  7. update docs for schemaTransforms

    include deprecated example in tests
    
    reorder some types
    yaacovCR committed May 12, 2020
    Configuration menu
    Copy the full SHA
    393fa8c View commit details
    Browse the repository at this point in the history