Cms: gqlTypePrefix should not prefix root Types

Created on 11 Feb 2021  Â·  1Comment  Â·  Source: craftcms/cms

Description

Setting gqlTypePrefix also prefixes the root query and mutation types – which is likely to have consequences for many GraphQL clients.

bug

Most helpful comment

Hey @membla, we just released Craft 3.6.6 with a new prefixGqlRootTypes config setting, which toggles whether query, mutation, and subscription types should be prefixed.

So if you add this to config/general.php, you’ll get the expected behavior:

'prefixGqlRootTypes' => false,

>All comments

Hey @membla, we just released Craft 3.6.6 with a new prefixGqlRootTypes config setting, which toggles whether query, mutation, and subscription types should be prefixed.

So if you add this to config/general.php, you’ll get the expected behavior:

'prefixGqlRootTypes' => false,
Was this page helpful?
0 / 5 - 0 ratings

Related issues

darylknight picture darylknight  Â·  3Comments

timkelty picture timkelty  Â·  3Comments

angrybrad picture angrybrad  Â·  3Comments

michel-o picture michel-o  Â·  3Comments

angrybrad picture angrybrad  Â·  3Comments