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

Add Edit Link to All Post Types

The following snippet shows how to add the “Edit” link as a GraphQL field to all post types:

This could then be queried like so:

Screenshot of a GraphQL Query for posts with their editLink
Screenshot of a GraphQL Query for posts with their editLink