Skip to content

Commit

Permalink
feat(graphql/@searchby): notContains, notStartsWith, `notEndsWith…
Browse files Browse the repository at this point in the history
…` operators.

Closes: #104
  • Loading branch information
LastDragon-ru authored Nov 18, 2023
1 parent 4fcd852 commit ca93702
Show file tree
Hide file tree
Showing 17 changed files with 659 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types = 1);

namespace LastDragon_ru\LaraASP\GraphQL\SearchBy\Definitions;

use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\NotContains;

class SearchByOperatorNotContainsDirective extends NotContains {
// Lighthouse loads all classes from directive namespace this leads to
// 'Class "Orchestra\Testbench\TestCase" not found' error for our *Test
// classes. This class required to avoid this error.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types = 1);

namespace LastDragon_ru\LaraASP\GraphQL\SearchBy\Definitions;

use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\NotEndsWith;

class SearchByOperatorNotEndsWithDirective extends NotEndsWith {
// Lighthouse loads all classes from directive namespace this leads to
// 'Class "Orchestra\Testbench\TestCase" not found' error for our *Test
// classes. This class required to avoid this error.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types = 1);

namespace LastDragon_ru\LaraASP\GraphQL\SearchBy\Definitions;

use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\NotStartsWith;

class SearchByOperatorNotStartsWithDirective extends NotStartsWith {
// Lighthouse loads all classes from directive namespace this leads to
// 'Class "Orchestra\Testbench\TestCase" not found' error for our *Test
// classes. This class required to avoid this error.
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotContains
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEndsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEqual
on
| ENUM
Expand All @@ -155,6 +167,12 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotStartsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorProperty
on
| ENUM
Expand Down Expand Up @@ -427,6 +445,18 @@ input SearchByScalarStringOrNull {
like: String
@searchByOperatorLike

"""
Not contains.
"""
notContains: String
@searchByOperatorNotContains

"""
Not ends with a string.
"""
notEndsWith: String
@searchByOperatorNotEndsWith

"""
Not Equal (`!=`).
"""
Expand All @@ -445,6 +475,12 @@ input SearchByScalarStringOrNull {
notLike: String
@searchByOperatorNotLike

"""
Not starts with a string.
"""
notStartsWith: String
@searchByOperatorNotStartsWith

"""
Starts with a string.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotContains
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEndsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEqual
on
| ENUM
Expand All @@ -149,6 +161,12 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotStartsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorProperty
on
| ENUM
Expand Down Expand Up @@ -499,6 +517,18 @@ input SearchByScalarString {
like: String
@searchByOperatorLike

"""
Not contains.
"""
notContains: String
@searchByOperatorNotContains

"""
Not ends with a string.
"""
notEndsWith: String
@searchByOperatorNotEndsWith

"""
Not Equal (`!=`).
"""
Expand All @@ -517,6 +547,12 @@ input SearchByScalarString {
notLike: String
@searchByOperatorNotLike

"""
Not starts with a string.
"""
notStartsWith: String
@searchByOperatorNotStartsWith

"""
Starts with a string.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotContains
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEndsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEqual
on
| ENUM
Expand All @@ -167,6 +179,12 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotStartsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorProperty
on
| ENUM
Expand Down Expand Up @@ -1561,6 +1579,18 @@ input SearchByScalarString {
like: String
@searchByOperatorLike

"""
Not contains.
"""
notContains: String
@searchByOperatorNotContains

"""
Not ends with a string.
"""
notEndsWith: String
@searchByOperatorNotEndsWith

"""
Not Equal (`!=`).
"""
Expand All @@ -1579,6 +1609,12 @@ input SearchByScalarString {
notLike: String
@searchByOperatorNotLike

"""
Not starts with a string.
"""
notStartsWith: String
@searchByOperatorNotStartsWith

"""
Starts with a string.
"""
Expand Down Expand Up @@ -1632,6 +1668,18 @@ input SearchByScalarStringOrNull {
like: String
@searchByOperatorLike

"""
Not contains.
"""
notContains: String
@searchByOperatorNotContains

"""
Not ends with a string.
"""
notEndsWith: String
@searchByOperatorNotEndsWith

"""
Not Equal (`!=`).
"""
Expand All @@ -1650,6 +1698,12 @@ input SearchByScalarStringOrNull {
notLike: String
@searchByOperatorNotLike

"""
Not starts with a string.
"""
notStartsWith: String
@searchByOperatorNotStartsWith

"""
Starts with a string.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotContains
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEndsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotEqual
on
| ENUM
Expand All @@ -167,6 +179,12 @@ on
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorNotStartsWith
on
| ENUM
| INPUT_FIELD_DEFINITION
| SCALAR

directive @searchByOperatorProperty
on
| ENUM
Expand Down Expand Up @@ -1561,6 +1579,18 @@ input SearchByScalarString {
like: String
@searchByOperatorLike

"""
Not contains.
"""
notContains: String
@searchByOperatorNotContains

"""
Not ends with a string.
"""
notEndsWith: String
@searchByOperatorNotEndsWith

"""
Not Equal (`!=`).
"""
Expand All @@ -1579,6 +1609,12 @@ input SearchByScalarString {
notLike: String
@searchByOperatorNotLike

"""
Not starts with a string.
"""
notStartsWith: String
@searchByOperatorNotStartsWith

"""
Starts with a string.
"""
Expand Down Expand Up @@ -1632,6 +1668,18 @@ input SearchByScalarStringOrNull {
like: String
@searchByOperatorLike

"""
Not contains.
"""
notContains: String
@searchByOperatorNotContains

"""
Not ends with a string.
"""
notEndsWith: String
@searchByOperatorNotEndsWith

"""
Not Equal (`!=`).
"""
Expand All @@ -1650,6 +1698,12 @@ input SearchByScalarStringOrNull {
notLike: String
@searchByOperatorNotLike

"""
Not starts with a string.
"""
notStartsWith: String
@searchByOperatorNotStartsWith

"""
Starts with a string.
"""
Expand Down
Loading

0 comments on commit ca93702

Please sign in to comment.