WP Manifestindependent plugin directory
manifest / integrations / wp-graphql-mb-relationships

WP GraphQL MB Relationships WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WPGraphQL Provider for MB Relationships

★ 11stars
319composer installs
0.3.0latest · 6 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/hsimah-services/wp-graphql-mb-relationships/archive/refs/heads/master.zip

On Packagist as hsimah-services/wp-graphql-mb-relationships:

composer require hsimah-services/wp-graphql-mb-relationships
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WPGraphQL Provider for MB Relationships

This is a simple WPGraphQL integration plugin for Meta Box Relationships. It only supports post types at the moment.

There are three new fields to add to the API configuration:

  • show_in_graphql - a boolean to show the connection in the schema
  • graphql_name - the name of the connection field in the schema
  • graphql_args - the connection args (optional)
  • resolve - the resolve handler (see WPGraphQL documentation) (experimental)
  • resolve_node - the node resolve handler (see WPGraphQL documentaiton) (experimental)
MB_Relationships_API::register( [ 
  'id'     => 'linked_posts', 
  'from'   => array(
      'show_in_graphql' => true,
      'graphql_name' => 'goingUp',
      'graphql_args' => [
        'higher' => [
      'type' => 'Boolean',
      'description' => 'Field Description',
         ],
       ],
      'object_type' => 'post', 
      'post_type'   => 'mypost', 
      'meta_box'    => [
          'title'         => 'Going Up!', 
          'context'       => 'side', 
      ],
    ], 
    'to'    => [
      'show_in_graphql' => true,
      'graphql_name' => 'goingDown',
      'object_type' => 'post', 
      'post_type'   => 'mypost', 
      'meta_box'    => [
          'title'         => 'Going Down!', 
          'context'       => 'side', 
          'empty_message' => 'None', 
      ], 
    ], 
  ]
); 

Releases

2 releases.

Tag
Published
Jul 25, 2020 6 years ago
0.3.0 latest
May 3, 2020 6 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

WP GraphQL MB Relationships 0.3.0 · audited by WP Registry

No security issues found.

Audited release
0.3.0
Findings
none
Worst severity
—
Content hash
a8b1df1f2d7a770e055174c2…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.