@aws-amplify/graphql-api-construct
Version:
AppSync GraphQL Api Construct using Amplify GraphQL Transformer.
9 lines (8 loc) • 484 B
TypeScript
import { ModelDataSourceStrategy } from '../model-datasource-strategy-types';
/**
* Get the type names with model directives in the GraphQL schema in SDL
* @param schema graphql schema in SDL
* @returns type names which model diretives are attached
*/
export declare const getModelTypeNames: (schema: string) => string[];
export declare const constructDataSourceStrategies: (schema: string, dataSourceStrategy: ModelDataSourceStrategy) => Record<string, ModelDataSourceStrategy>;