gatsby-uc / gatsby-source-strapi

Gatsby source plugin for building websites using Strapi as a data source
MIT License
354 stars 182 forks source link

CreateTypes Camel case vs. snake case #351

Closed Rodrigo127 closed 1 year ago

Rodrigo127 commented 2 years ago

Is it necessary to use SnakeCase when using the action createTypes?

type STRAPI_AUTO_CALCULATOR_STATE implements Node { about_author: STRAPI_AUTO_CALCULATOR_STATEAbout_author }

Next one with camel case didn't work (also tried with @dontInfer).

type StrapiAutoCalculatorState implements Node { about_author: STRAPI_AUTO_CALCULATOR_STATEAbout_author }

This is the type when using the playground: image

The typeDefs.gql contains both definitions StrapiAutoCalculatorState and STRAPI_AUTO_CALCULATOR_STATE

moonmeister commented 1 year ago

Thanks for your interest in this project. This plugin is moving into the Gatsby User Collective and this repo will be archived. Please open an issue in that repository, submit a PR if you'd like to see this implemented, or join us on Discord if you have questions!