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

Separate interfaces from implementations for exported classes #3616

Closed
wants to merge 1 commit into from

Commits on Jun 2, 2022

  1. Separate interfaces from implementations for exported classes

    = allows for cross-realm/worker GraphQL
    = allows for custom implementations of the GraphQL entity
    implementations, e.g. the `execute` function from GraphQL can be used
    for any object that implements the `GraphQLSchema` interface, even if
    does not conform to the default `GraphQLSchemaImpl` class.
    = currently provides symbols for predicates for the following
    interfaces: `GraphQLScalarType`, `GraphQLObjectType`,
    `GraphQLInterfaceType`, `GraphQLUnionType`, `GraphQLEnumType`,
    `GraphQLInputObjectType`, `GraphQLList`, `GraphQLNonNull`,
    `GraphQLDirective`, `GraphQLSchema`, and `Source`, i.e. all classes that
    made internal use of the `instanceOf` method.
    = the `instanceOf` method now uses symbols instead of `instanceof`.
    = the exported BREAK object is now passed into the visitor function to
    allow for cross-compatibility between `graphql` library instances.
    yaacovCR committed Jun 2, 2022
    Configuration menu
    Copy the full SHA
    e60c6f3 View commit details
    Browse the repository at this point in the history