You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently installed your phalcon-graphql-boilterplate to test Phalcon and GraphQL worlds, because them looks very powerful and the best options in their sectors.
Testing your project, when I try to introduce date/datetime fields I have a problem, I get all the time errors like: "date is expected, '2017-10-27' found', but this format is correct.
So, when I verify this format in their classes and found it on redound/phalcon-graphql project, inside the folder src/PhalconGraphQL/Definition/ScalarTypes/, maybe I'm wrong, but when I modified these files it works (because not found StringValue y IntValue in GraphQL\Language\AST):
Changes in JsonScalarType.php
remove: use GraphQL\Language\AST\StringValue;
add: use GraphQL\Language\AST\StringValueNode;
remove: if ($ast instanceof StringValue) {
add: if ($ast instanceof StringValueNode) {
Changes in DateTimeScalarType.php
remove: use GraphQL\Language\AST\IntValue;
add: use GraphQL\Language\AST\IntValueNode;
remove: use GraphQL\Language\AST\StringValue;
add: use GraphQL\Language\AST\StringValueNode;
Changes in DateScalarType.php
remove: use GraphQL\Language\AST\IntValue;
add: use GraphQL\Language\AST\IntValueNode;
remove: use GraphQL\Language\AST\StringValue;
add: use GraphQL\Language\AST\StringValueNode;
remove: if ($ast instanceof StringValue || $ast instanceof IntValue) {
add: if ($ast instanceof StringValueNode || $ast instanceof IntValueNode) {
I hope this help a little bit your project :)
The text was updated successfully, but these errors were encountered:
Hi,
I recently installed your phalcon-graphql-boilterplate to test Phalcon and GraphQL worlds, because them looks very powerful and the best options in their sectors.
Testing your project, when I try to introduce date/datetime fields I have a problem, I get all the time errors like: "date is expected, '2017-10-27' found', but this format is correct.
So, when I verify this format in their classes and found it on redound/phalcon-graphql project, inside the folder src/PhalconGraphQL/Definition/ScalarTypes/, maybe I'm wrong, but when I modified these files it works (because not found StringValue y IntValue in GraphQL\Language\AST):
I hope this help a little bit your project :)
The text was updated successfully, but these errors were encountered: