Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

Add field to output URLs for Sitemap

The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap.

The resolver uses mostly hard-coded data, but shows what a potential solution could look like.

You can then query this field using:

Querying the allUrls field in GraphiQL