-
Notifications
You must be signed in to change notification settings - Fork 232
[Q] Outdated Relay branch? #284
Comments
@kikoseijo Yes the relay branch is kind of outdated. I was planning to use it as a 1.1 release a year ago but never had the time and most of the pull request for new features were merged in master/develop. One thing you could do, is use the master branch, but copy the Relay folder of the feature/relay branch. It should work, mostly... Then, maybe do a pull request on the develop branch if you fix some compatibility issue? :) That would be awesome. |
Consider it done! 👍 |
Hi @dmongeau, I'll post my progress here on using the master branch with the Relay features. I'm still failing to get the actual nodes in the GraphQL response, I'll keep you posted here.. FYI @kikoseijo Kind regards, Erik |
Hi @dmongeau & @kikoseijo, I just created a pull request, merging the Relay folder (with adjustments) into the master branch: I'm so glad I found the issue! It was only when dumping the query's sql in the resolver method that I could see that the limit was set to 0, explaining why my edges never gave any node results.. Kind regards and thanks again for all the kind support! Erik |
There are more, I remember had also to touch something to do with how the fields are populated. |
I have this changes made: TypeIsNode.php */
- public function getFieldsForObjectType()
+ public function getFields()
{
- $currentFields = parent::getFieldsForObjectType();
+ $currentFields = parent::getFields(); Relay to Config
Change scope to publicReplace-use Folklore\GraphQL\Console\GeneratorCommand; stubs
This is all I have recorded on commits. |
Graz for this awesome package its being of such a great help.
I just have a doubt, as the Relay branch its probably missing new features being incorporated from some time ago, am I right?
Im new into GraphQL, as in lost in concepts, I opted for the Relay branch as I see its a newer feature, with a hope that it was better options.
Haven't had any issues tho, just hoping to get some clarification.
Most people using the normal branch, is this due to a better compatibility with packages like Apollo and others? and im one of the few going for a pure Relay Modern implementations.
Thanks for the TIP!
and Happy coding.
The text was updated successfully, but these errors were encountered: