graphqlite icon indicating copy to clipboard operation
graphqlite copied to clipboard

Custom scalar types already resolved through webonyx/graphql

Open deeky666 opened this issue 10 months ago • 0 comments

Hi,

I recently made an observation that ScalarType::parseValue() is called twice for custom scalars.

This is due to webonyx/graphql already resolving ScalarType and EnumType by itself while GraphQLite is trying to resolve it again. Obviously this observation already has been made for Enums but not for Scalars:

GraphQL\Utils\Value

Image

TheCodingMachine\GraphQLite\Types\ArgumentResolver

Image

I guess the second resolve call can be omitted then if we have a ScalarType :)

deeky666 avatar Mar 05 '25 08:03 deeky666