tarantool / graphql

GraphQL implementation in Lua
MIT License
15 stars 3 forks source link

Support custom directives #26

Closed DifferentialOrange closed 2 years ago

DifferentialOrange commented 2 years ago

GraphQL custom directives was introduced in spec #3.13 in October 2021 release. Directives are the preferred way to extend GraphQL with custom or experimental behavior. This patch adds support of custom directives, as well as several location adjustments and repeatable directive option needed for full support of custom directives.

This patch also adds introspection test for schema with custom directives to validate schema. Introspection of schema is described in spec #4.2.

Based on PR #20 by @no1seman . No major changes was introduced: minor syntax and test cases fixes, add commit message description, removed #18 and #19 commits.