#!/bin/bash
definitionsDir=src/apollo/definitions

# remove all existing type definitions so we only keep used ones.
rm -rf $definitionsDir/*

apollo client:codegen -c apollo.config.js --globalTypesFile=$definitionsDir/globalTypes.ts --target typescript --outputFlat $definitionsDir --no-addTypename
