The "url" attribute is no longer returned from generalSettings on a multisite WordPress site. Is there a way to get it back in please?
Thank you.
@jasonbahl FYI, this bug unfortunately makes it impossible to use gatsby-source-wordpress-experimental as described here https://github.com/gatsbyjs/gatsby-source-wordpress-experimental/issues/23
Would be great with a fix, thanks :)
I'm in the same boat, hitting this when trying to move from gatsby-source-wordpress to gatsby-source-wordpress-experimental. Would love to help if you point me to a direction in the code ...
Hey!
Sorry for the inactivity here. This is addressed in the v0.10.0 release I'm about to publish. (https://github.com/wp-graphql/wp-graphql/pull/1348)
You can see this in action in the upcoming release, querying from the main site and a subdirectory multisite site:


It's a big release, so if you need to get this working but don't have time to update, you should be able to do the following as a stop-gap:
```
add_action( 'graphql_register_types', function() {
if ( is_multisite() ) {
register_graphql_field( 'GeneralSettings', 'url', [
'type' => 'String',
'resolve' => function() {
return get_site_url();
}
] );
}
} );
Most helpful comment
@jasonbahl FYI, this bug unfortunately makes it impossible to use gatsby-source-wordpress-experimental as described here https://github.com/gatsbyjs/gatsby-source-wordpress-experimental/issues/23
Would be great with a fix, thanks :)