Skip to content

Graphql: Conflicting Field Types when using excel-transformer #5724

@pgegenfurtner

Description

@pgegenfurtner

Summary

I have an excel sheet with a column "number". The cell's content varies form e.g. S-123-1 to 1234.
When the nodes are created, two different field types are interpreted. A string and a number. With this conflict, graphql omits those fields.
Is there now any way I can define these fields as strings? Changing the Cellformatting in excel does nothing.

Relevant information

In gatsby-node.js inonCreateNode I can use the fields fine. However in createPages, where I want to query this data, I get the warning about the conflicting field types.

Environment (if relevant)

  • Gatsby version: 1.9.270
  • gatsby-transfromer-excel: 1.0.7
  • gatsby-cli version: 1.1.40
  • Node.js version: 8.9.4
  • Operating System: macOS 10.13.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions