graphpql / graphpinator

:zap::globe_with_meridians::zap: Easy-to-use & Fast GraphQL server implementation for modern PHP. Includes features from latest draft, middleware directives and modules with extra functionality.

Home Page:https://github.com/graphpql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter directives

peldax opened this issue · comments

New executive directive which filters list items.

query { fieldListOfSomething @filterField(name: "foo", contains: "bar") {
   foo 
}}

outputs only items where foos value contains "bar". Support for subfields:

query { fieldListOfSomething @filterField(name: "foo.bar.baz", contains: "bar") {
   foo { bar { baz }}
}}

Continues in #98