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

Typesystem directives - check for duplicates

peldax opened this issue · comments

Check for duplicates in addDIrective function, currently this relies on schema designer but is not explicitly checked.
Executable directives are checked during normalisation (semantic analysis).

  • directive must be marked as repeatable in order to allow duplicates
  • wrap the checking algorithm in $validateSchema cond