Importing a GraphQL schema
Restorm imports a GraphQL schema in SDL — the text format, the one in
.graphql and .gql files.
Importing
Section titled “Importing”File ▸ Import (Ctrl+I) then the schema file. Pasted content works too:
Restorm recognises an SDL by the presence of type Query, type Mutation or
schema {.

What is imported
Section titled “What is imported”| Element | What Restorm makes of it |
|---|---|
| Root types | One folder per operation type (Query, Mutation, Subscription) |
| Each root field | A GraphQL request with its operationType |
| Arguments | Operation variables pre-filled with placeholder values |
| Descriptions and types | The API documentation |
enum | Enumerations reusable as a value type |
Updating
Section titled “Updating”GraphQL is one of the re-syncable formats (if the schema was imported from a URL): the folder’s Refresh button fetches the source and Restorm applies the delta. See Updating from the source.