A snippet with GraphQL to request the main configuration file (src/content/config/main.yaml).

query MainConfiguration {
    allConfigYaml (
        filter:{
            fields:{slug: {eq:"/config/main/"}}
        }
    )
    {
        edges {
            node {
                fields{
                    slug
                }

                nav{
                    text
                    slug
                }
            }
        }
    }
}