Skip to content

Instantly share code, notes, and snippets.

View ranaaterning's full-sized avatar

Rana Terning ranaaterning

  • Redmind AB
  • Stockholm
View GitHub Profile
@ranaaterning
ranaaterning / args.php
Created August 22, 2019 14:47
Implementation of a filter query containing AND and OR statement
<?php
use WPGraphQL\Type\WPInputObjectType;
use WPGraphQL\Types;
include_once('types.php');
add_filter( 'graphql_input_fields', function ( $fields, $type_name, $config ) {
if ( $type_name === 'RootQueryToProductConnectionWhereArgs' ) {