Skip to content

headlesscms-import-export does not support singularApiName and pluralApiName fields #164

Open
@JBarnden

Description

@JBarnden

When trying to import or transfer content models, the following error is raised:
Field "singularApiName" of required type "String!" was not provided

This can be fixed with the following tweak:

// Create the model
  const model = pick(modelsToImport[i], [
      "name",
      "modelId",
      "group",
      "description",
      "singularApiName",
      "pluralApiName",
  ]);

I have a branch with a fix ready if you'd be happy for me to open a PR.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions