@medusajs/index
Version:
Medusa Index module
28 lines • 1.13 kB
TypeScript
import { IndexTypes } from "@medusajs/framework/types";
import { GraphQLUtils } from "@medusajs/framework/utils";
export declare const CustomDirectives: {
Listeners: {
configurationPropertyName: string;
isRequired: boolean;
name: string;
directive: string;
definition: string;
};
};
export declare function makeSchemaExecutable(inputSchema: string): GraphQLUtils.GraphQLSchema | undefined;
/**
* This util build an internal representation object from the provided schema.
* It will resolve all modules, fields, link module representation to build
* the appropriate representation for the index module.
*
* This representation will be used to re construct the expected output object from a search
* but can also be used for anything since the relation tree is available through ref.
*
* @param schema
*/
export declare function buildSchemaObjectRepresentation(schema: string): {
objectRepresentation: IndexTypes.SchemaObjectRepresentation;
entitiesMap: Record<string, any>;
executableSchema: GraphQLUtils.GraphQLSchema;
};
//# sourceMappingURL=build-config.d.ts.map