@magidoc/plugin-reverse-schema-mapper
Version:
A library that provides the ability to do a reverse lookup on GraphQL types.
8 lines (7 loc) • 308 B
TypeScript
import type { GraphQLNamedType } from 'graphql';
import type { TypeReverseMapping } from './reverseUsage';
export declare class ReverseGraphQLSchemaMapping {
private mapping;
constructor(mapping: Map<string, TypeReverseMapping>);
getFor(type: GraphQLNamedType): TypeReverseMapping | undefined;
}