nerdsupremacist / Graphaello

A Tool for Writing Declarative, Type-Safe and Data-Driven Applications in SwiftUI using GraphQL

Home Page:https://graphaello.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codegen not escaping swift keywords

RolandasRazma opened this issue · comments

Screenshot 2022-02-22 at 12 26 53

this is same as #37

quick workaround for me was to add

perl -i -0pe 's/case (self|do|as|is) =/case `$1` =/gms' Graphaello.swift

after

graphaello codegen --project $PROJECT_FILE_PATH --apollo derivedData