You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project currently lacks of an ability to import a GraphQL schema from an existing introspection response (e.g. IntrospectionQuery) or single human-readable schema or even a collection of such schemas.
Proposed solution:
Since the GraphQL is not supposed to carry the URL information, we declare special envelope wrapping both an IntrospectionQuery or schema and URL.
To achieve this, the @har/sdk-core package utilized. Also, to be aligned with other API types re-exported from @har/sdk-core the graphql package types also are to be re-exported as follows:
The project currently lacks of an ability to import a GraphQL schema from an existing introspection response (e.g.
IntrospectionQuery
) or single human-readable schema or even a collection of such schemas.Proposed solution:
Since the GraphQL is not supposed to carry the URL information, we declare special envelope wrapping both an
IntrospectionQuery
or schema and URL.To achieve this, the
@har/sdk-core
package utilized. Also, to be aligned with other API types re-exported from @har/sdk-core thegraphql
package types also are to be re-exported as follows:We are introducing
GraphQL.Document
convenience type for further usage.Extend
ImporterType
enumerationExtend
Doc
conditional type deriving fromImporterType.GRAPHQL
andGraphQL.Document
Introduce a new
Importer
implementationExpected results:
GraphQLImporter
able to handleGraphQL.Doument
import as follows:Given an
IntrospectionQuery
envelopeExpect the
imported
contains the equivalent ofdocument
Given a single SDL schema
Expect the
imported
contains the converted introspection which is an equivalent ofschema
givenGiven a collection of SDL schema
Expect the
imported
contains the converted introspection which is an equivalent of joinedschema
givenThe text was updated successfully, but these errors were encountered: