@medusajs/utils
Version:
Medusa utilities functions shared by Medusa core and Modules
7 lines • 477 B
TypeScript
/**
* Extracts only the relation fields from the GraphQL type map.
* @param {Map<string, any>} typeMap - The GraphQL schema TypeMap.
* @returns {Map<string, Map<string, string>>} A map where each key is an entity name, and the values are a map of relation fields and their corresponding entity type.
*/
export declare function extractRelationsFromGQL(typeMap: Map<string, any>): Map<string, Map<string, string>>;
//# sourceMappingURL=extract-relations-from-graphql.d.ts.map