Skip to content

graphql

Auto Added by WPeMatico

Not able to access graphql schema and resolver on localhost Xampp server

Please help me I am not able to access graphql schema and resolver from the custome module on localhost Xampp Server Here is my code /etc/graphql/schema.graphqls type Query { testHello: String @resolver(class: “modulename\modulename\Model\Resolver\TestHello”) } Model/Resolver/TestHello.php <?php namespace ModulenameModuelnameModelResolver; use MagentoFrameworkGraphQlQueryResolverInterface;… Read More »Not able to access graphql schema and resolver on localhost Xampp server

GraphQL – Schema generated remove not null indication when in an array

In a custom module in etc/schema.graphqls, I declared my query : type Query { getAvailableCountries: [Country!] @resolver(class: “\Vendor\Module\Model\Resolver\getAvailableCountries”) @doc(description: “Get list of country allowed on magento’s side.”) } There is my resolver code : public function resolve(Field $field, $context, ResolveInfo… Read More »GraphQL – Schema generated remove not null indication when in an array