Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lionixevolve/GraphQLSuiteCRM
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbarletta committed Oct 29, 2019
2 parents c599c91 + 0a361e5 commit ee928f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Latest Stable Version](https://poser.pugx.org/lionixevolve/graphqlsuitecrm/v/stable)](https://packagist.org/packages/lionixevolve/graphqlsuitecrm) [![Total Downloads](https://poser.pugx.org/lionixevolve/graphqlsuitecrm/downloads)](https://packagist.org/packages/lionixevolve/graphqlsuitecrm) [![Latest Unstable Version](https://poser.pugx.org/lionixevolve/graphqlsuitecrm/v/unstable)](https://packagist.org/packages/lionixevolve/graphqlsuitecrm) [![License](https://poser.pugx.org/lionixevolve/graphqlsuitecrm/license)](https://packagist.org/packages/lionixevolve/graphqlsuitecrm)
# GraphQLSuiteCRM

Use GraphQL instead of REST API to access SuiteCRM data. Production ready. Supports custom modules and custom REST endpoints with or without authentication.
Expand Down
6 changes: 5 additions & 1 deletion graphql/Schema/ListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ function ListHelper($module, $value = null, $args = [], Youshido\GraphQL\Execut
$searchFields[$key] = array('query_type' => 'default', 'value' => $value, 'enable_range_search'=> true, 'is_date_field'=>true);
}
}

// Work around for email1 field, it cannot be used in the where clause as it an alias.
if (!empty($searchFields["email1"]) && isset($moduleBean->field_defs['email1'])) {
$searchFields["email_addresses.email_address"] = $searchFields["email1"];
unset($searchFields["email1"]);
}
$where=searchHelper::generateSearchWhere($moduleBean, $searchFields);
$offset=0;
if (!empty($args['offset'])) {
Expand Down
1 change: 1 addition & 0 deletions graphql/schema-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@
require_once __DIR__ . '/Schema/UsersListType.php';
require_once __DIR__ . '/Schema/UserType.php';
require_once __DIR__ . '/Schema/RelatedBeanInputType.php';
require_once __DIR__ . '/Schema/searchHelper.php';

0 comments on commit ee928f2

Please sign in to comment.