Kentico/gatsby-source-kontent

View on GitHub
packages/gatsby-source/src/createSchemaCustomization.types.ts

Summary

Maintainability
A
55 mins
Test Coverage
import { CreateSchemaCustomizationArgs } from 'gatsby';
import { getKontentTypesSchemaNamingConfiguration } from './naming';

const createSchemaCustomization = async (
  api: CreateSchemaCustomizationArgs,
): Promise<void> => {
  const schema = getKontentTypesSchemaNamingConfiguration();
  api.actions.createTypes(schema);
};

export { createSchemaCustomization as kontentTypesCreateSchemaCustomization };