Activate the preview on entity

Last updated on
14 May 2019

After fill the global settings, you must to enable preview graphql on the entity where you want the preview features.

Go to

admin/structure/preview-graphql

then clic on add Preview graphql entity.

You must to choose the entitty type for which entity the preview graphql will be enable. You can also select the bundle entity, if you want to restrict or make different configuration per bundle.

In addition you must to choose what GraphQL type that the deriver will return. I.E, if your query graphql is waiting an entity type  as graphQL type, set this value on entity type. Else set per bundle.

For example :

-we try to do an preview on node article

-if the deriver type is set on entity type, your query will recieved a Node graphQLType

-if the deriver type is set on bundle, your query will received a NodeArticle graphQLType

Also you can override some settings (as front uri,  graphql query and fragment)  if you got diffrent requirement.

Help improve this page

Page status: No known problems

You can: