GraphqlQuery.ValidationWarning (graphql_query v0.6.1)
View SourceRepresents a validation warning returned from the Rust NIF layer.
Warnings differ from errors in that they do not prevent a query from being executed — they indicate best-practice violations or deprecated usage.
The kind field identifies the warning type so the Elixir layer can format
each kind appropriately. This design allows new warning types to be added in
the future without breaking existing callers.
Warning kinds
"deprecated_field"— the query uses a field marked@deprecatedin the schema. Themessagefield contains the deprecation reason (from the@deprecated(reason: ...)argument),fieldis the field name, andparent_typeis the containing GraphQL type.
Summary
Types
@type t() :: %GraphqlQuery.ValidationWarning{ field: String.t(), kind: String.t(), locations: [GraphqlQuery.Location.t()], message: String.t(), parent_type: String.t() }