#!/bin/bash

set -e

rm -rf ./src/generated
mkdir -p ./src/generated
./external/cppgraphqlgen/build/src/clientgen -s ./src/schema.graphqls \
  -r ./src/query.graphql \
  --source-dir ./src/generated \
  --header-dir ./src/generated \
  -p Client \
  -n graphql
