Mark @filter
directive as repeatable
in the schema
#438
Labels
A-schema
Area: the data model that queries use
C-enhancement
Category: raise the bar on expectations
E-hard
Call for participation: experience needed to fix: hard / a lot.
E-help-wanted
Call for participation: help is requested to fix this issue.
E-mentor
Call for participation: mentorship is available for this issue.
R-relnotes
Release: document this in the release notes of the next release
Trustfall queries are allowed to have more than one filter on the same field. Such repeatable directives were defined to need a
repeatable
keyword in the SDL, per a recent GraphQL spec, and our@filter
directive should have it.This would improve compatibility and user experience when using GraphQL editors and LSP integrations, since it will eliminate a source of incorrect "invalid query" errors.
Unfortunately, our current parser does not support
repeatable
directives so that would be a parse error.When updating to a newer parser, make the
@filter
directiverepeatable
.The text was updated successfully, but these errors were encountered: