How to create a nested resolver in apollo graphql server
<p>Given the following apollo server graphql schema
I wanted to break these down into separate modules so I don't want the author query under the root Query schema.. and want it separated. So i added another layer called authorQueries before adding it to the Root Query</p>

<pre><code>type Author {
    id: Int,
    firstName: String,
    lastName: String
}  
type authorQueries {
    author(firstName: String, lastName: String): Author
}

type Query {
    authorQueries: authorQueries
}

schema {
    query: Query
}
</code></pre>

<p>I tried the following.. you can see that authorQueries was added as another layer before the author function is specified.</p>

<pre><code>Query: {
    authorQueries :{
        author (root, args) {
            return {}
       }
    }
}
</code></pre>

<p>When querying in Graphiql, I also added that extra layer.. </p>

<pre><code>{
    authorQueries {
        author(firstName: "Stephen") {
            id
        }
    }
}
</code></pre>

<p>I get the following error.</p>

<p><code>"message": "Resolve function for \"Query.authorQueries\" returned undefined",</code></p>