Skip to content

magento-graphql

Auto Added by WPeMatico

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

Graphql module not working properly in magento 2

I created the module schema.graphqls #Magento Customer GraphQl Schema type Query { testcustomer: Testcustomer @resolver(class: “Graphql\CrudOperations\Model\Resolver\StudentList”) @doc(description: “The testcustomer query returns information about a customer”) } type Testcustomer @doc(description: “Testcustomer defines the customer name and other details”) { student_id: Int… Read More »Graphql module not working properly in magento 2