This function is the starting point for using GraphQL Config. It looks for a config file in predefined search places in the currently working directory.
A basic usage example (async):
An exact path of a config file.
A path of a directory where GraphQL Config should look for a file (uses process.cwd() by default).
A name of the config file. It's
graphql by default. Using
relay as a config name instructs GraphQL Config to look for all the variations of possible config file names where one of them is
An array of
GraphQLExtensionDeclaration objects, place to register extensions.
GraphQL Config throws an error where there's no config file by default.
GraphQL Config by default throws an error if there's a config file but the file is empty.