Skip to main content

discover

Function discover 

Source
pub fn discover() -> Result<String>
Expand description

Find a schema when none was passed: walk the current directory tree for schema documents (not operation docs), preferring .graphqls, then a schema.* file, then any .graphql/.gql whose contents look like SDL. Nearest (shallowest) wins; other candidates elsewhere are reported.