GraphQLCheck
Last edit: Apr 01, 2026
GraphQLCheck
Severity: error | Type: GraphQL
This check ensures that .graphql files in your project contain valid GraphQL that conforms to the platformOS schema. It catches two categories of problems:
- Syntax errors — malformed GraphQL that cannot be parsed at all.
- Validation errors — valid GraphQL syntax that does not match the schema (e.g. querying a field that does not exist).
The check requires an up-to-date local copy of the platformOS GraphQL schema. Run pos-cli check update-docs to download the latest schema.
Examples
✗ Incorrect Code Example (Avoid using this):
query {
records(
per_page: 20
filter: {
nonexistent_field: { value: "test" }
}
) {
results {
id
}
}
}
Querying a field that does not exist in the schema.
✓ Correct Code Example (Use this instead):
query {
records(
per_page: 20
filter: {
table: { value: "my_table" }
}
) {
results {
id
properties
}
}
}
Configuration
The default configuration for this check:
GraphQLCheck:
enabled: true
severity: error
Disabling This Check
Disabling this check is not recommended. Run pos-cli check update-docs to refresh the schema if you are getting false positives after a platformOS update.