web-ridge / gqlgen-sqlboiler

This is a plugin for gqlgen to generate converts + filter queries and resolvers for sqlboiler
MIT License
74 stars 13 forks source link

Enum converts in long table names won't be generated in the where filter #64

Closed arjendevos closed 2 years ago

arjendevos commented 2 years ago

The sqlboiler parser now looks for first uppercase in the enum name. This excludes support for longer table names with underscores.

So tables like

company_invoice
      status enum('paid', 'unpaid')

The plugin will only look in the company table as model but the table should be company_invoice. This could be fixed if we compare the enums to the models & fields from sqlboiler

RichardLindhout commented 2 years ago

Fixed in v3.3.3