So I managed to fix my error using this config:
Using functions/lib/graphql/** didn’t work so I have to specify the file extension
functions/lib/graphql/**