diff --git a/docs/3.0.0-beta.x/plugins/graphql.md b/docs/3.0.0-beta.x/plugins/graphql.md index 1f14c5db2c..dd090082ec 100644 --- a/docs/3.0.0-beta.x/plugins/graphql.md +++ b/docs/3.0.0-beta.x/plugins/graphql.md @@ -91,6 +91,23 @@ query { } ``` +### Fetch dynamic zone data + +Dynamic zones are union types in graphql so you need to use fragments to query the fields. + +``` +query { + restaurants { + dz { + __typename + ... on ComponentDefaultClosingperiod { + label + } + } + } +} +``` + ### Create a new entry - `input`: Object