subql icon indicating copy to clipboard operation
subql copied to clipboard

[$200 in SQT] Improve error handling on Codegen for schema entities

Open bz888 opened this issue 1 year ago • 0 comments

Description

If an entity has a lowercase name it can result in invalid generated gode

// graphql.schema
type exampleField @entity {
 id: ID!
}

This will generate a fie ExampleField.ts However, the index.ts codegen will import exampleField.ts

The generated index.ts should have the correct case sensitive import

bz888 avatar Jan 08 '24 23:01 bz888