Kentico/gatsby-source-kontent

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

Summary

Maintainability
A
55 mins
Test Coverage
import { CustomCreateSchemaCustomizationArgs } from './types';
import { getKontentTaxonomiesSchemaNamingConfiguration } from './naming';

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

export { createSchemaCustomization as kontentTaxonomiesCreateSchemaCustomization };