Started having issues with `graphql codegen` I upd...
# orm-help
l
Started having issues with
graphql codegen
I updated the model with extra types and it started to give this error. Even when reverting to a model that did work still gives this error. Anyone came across this?
Copy code
{ GraphQLError: Syntax Error: Expected Name, found }
    at syntaxError (/Users/.../projects/.../node_modules/graphql/error/syntaxError.js:24:10)
    at expect (/Users/.../projects/.../node_modules/graphql/language/parser.js:1299:32)
    at parseName (/Users/.../projects/.../node_modules/graphql/language/parser.js:92:15)
    at parseFieldDefinition (/Users/.../projects/.../node_modules/graphql/language/parser.js:809:14)
    at many (/Users/.../projects/.../node_modules/graphql/language/parser.js:1348:16)
    at parseFieldsDefinition (/Users/.../projects/.../node_modules/graphql/language/parser.js:799:50)
    at parseObjectTypeDefinition (/Users/.../projects/.../node_modules/graphql/language/parser.js:757:16)
    at parseTypeSystemDefinition (/Users/.../projects/.../node_modules/graphql/language/parser.js:663:16)
    at parseDefinition (/Users/.../projects/.../node_modules/graphql/language/parser.js:143:16)
    at parseDocument (/Users/.../projects/.../node_modules/graphql/language/parser.js:110:22)
  message: 'Syntax Error: Expected Name, found }',
  locations: [ { line: 193, column: 1 } ],
  path: undefined }
The model is:
Copy code
type Post {
  id: ID! @unique
  text: String
}
graphql get-schema --project database
is generating the graphql file
Actually... the
graphql get-schema --project database
was not updating. did not give an error. deleting the generated file causes codegen to work
Now will try to add the types back in