It sounds like you need an introspection query. I haven’t tried with Fauna yet but something like GQL codegen might work for you.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Easier access to Fauna-generated GraphQL schema (compatible with https://graphql-code-generator.com/) | 4 | 1868 | January 5, 2022 | |
Get schema for a collection using GraphQL API | 10 | 548 | November 24, 2020 | |
Programatically add single field to Schema | 3 | 407 | February 12, 2022 | |
GraphQL: query by nested field reference/ID | 3 | 1098 | May 4, 2021 | |
FaunaDB types using TS - FQL vs GQL | 4 | 1733 | April 8, 2021 |