-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Attributes Field to BeamClaimType (#46)
- Loading branch information
1 parent
3f987a4
commit 081db96
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace Enjin\Platform\Beam\GraphQL\Types; | ||
|
||
use Rebing\GraphQL\Support\Facades\GraphQL; | ||
|
||
class AttributeType extends Type | ||
{ | ||
/** | ||
* Get the type's attributes. | ||
*/ | ||
public function attributes(): array | ||
{ | ||
return [ | ||
'name' => 'AttributeType', | ||
'description' => __('enjin-platform-beam::type.attribute.description'), | ||
]; | ||
} | ||
|
||
/** | ||
* Get the type's fields definition. | ||
*/ | ||
public function fields(): array | ||
{ | ||
return [ | ||
'key' => [ | ||
'type' => GraphQL::type('String'), | ||
'description' => __('enjin-platform::mutation.batch_set_attribute.args.key'), | ||
], | ||
'value' => [ | ||
'type' => GraphQL::type('String'), | ||
'description' => __('enjin-platform::mutation.batch_set_attribute.args.value'), | ||
], | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters