CLI

sqlmancer generate

sqlmancer generate <typeDefs> <output>

Generates TypeScript typings for the database client from the provided GraphQL type definitions

parameters

  • typeDefs: Glob pattern to match any files containing your type definitions. These can be plain text files or JavaScript/TypeScript files that use the gql tag
  • output: Relative file path for the generated TypeScript file.

sqlmancer watch

sqlmancer watch <typeDefs> <output>

Watches the provided GraphQL type definitions and generates typings for the database client again if any type definitions changed

parameters

  • typeDefs: Glob pattern to match any files containing your type definitions. These can be plain text files or JavaScript/TypeScript files that use the gql tag
  • output: Relative file path for the generated TypeScript file.