GraphQL API and default schema #375
-
Hello, again I am asking for help from professionals. Am I right that in wagtail-grapple the default schema file only supports two models: Page and StreamField? And in order to display custom models through the GraphQL API, one need to either create a custom schema file or edit the default schema? So far all the options I've found using the default schema are much more complex than using a custom schema file, but perhaps I haven't found the best options? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@paragliding-nsk Grapple will generate schema for any supported models. Here's what it looks at by default: https://github.com/torchbox/wagtail-grapple/blob/main/grapple/registry.py#L50-L57 |
Beta Was this translation helpful? Give feedback.
@paragliding-nsk Grapple will generate schema for any supported models. Here's what it looks at by default: https://github.com/torchbox/wagtail-grapple/blob/main/grapple/registry.py#L50-L57