Similar to schema loading - but meant to use for GraphQL documents (query/mutation/subscription/fragment).
Any input provided as a source will be recognized by utils automatically.
It also extracts usages of
gql from code files using
loadDocuments returns an array of document sources. Each source object has the following structure:
loadDocuments takes in additional configuration via the
options object (the second argument). There are some defaults to be aware of - to learn more, see the full API documentation.
You can learn more about loaders to load documents from different sources.