This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
102 additions
and
19 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,20 @@ | ||
<?php | ||
|
||
namespace Digia\GraphQL\Type\Definition\Behavior; | ||
|
||
trait ValueTrait | ||
{ | ||
|
||
/** | ||
* @var mixed|null | ||
*/ | ||
protected $value; | ||
|
||
/** | ||
* @return mixed|null | ||
*/ | ||
public function getValue() | ||
{ | ||
return $this->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
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,59 @@ | ||
# Copyright (c) 2015-present, Facebook, Inc. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
query queryName($foo: ComplexType, $site: Site = MOBILE) { | ||
whoever123is: node(id: [123, 456]) { | ||
id , | ||
... on User @defer { | ||
field2 { | ||
id , | ||
alias: field1(first:10, after:$foo,) @include(if: $foo) { | ||
id, | ||
...frag | ||
} | ||
} | ||
} | ||
... @skip(unless: $foo) { | ||
id | ||
} | ||
... { | ||
id | ||
} | ||
} | ||
} | ||
|
||
mutation likeStory { | ||
like(story: 123) @defer { | ||
story { | ||
id | ||
} | ||
} | ||
} | ||
|
||
subscription StoryLikeSubscription($input: StoryLikeSubscribeInput) { | ||
storyLikeSubscribe(input: $input) { | ||
story { | ||
likers { | ||
count | ||
} | ||
likeSentence { | ||
text | ||
} | ||
} | ||
} | ||
} | ||
|
||
fragment frag on Friend { | ||
foo(size: $size, bar: $b, obj: {key: "value", block: """ | ||
block string uses \""" | ||
|
||
"""}) | ||
} | ||
{ | ||
unnamed(truthy: true, falsey: false, nullish: null), | ||
query | ||
} |