Top
image credit: Unsplash

GraphQL Syntax Used for a Novel Approach to Schema Validation and Code Generation

May 4, 2022

Via: InfoQ

Nav Technologies has created an open-source schema definition and code generator that uses GraphQL syntax to define events and message formats. GraphQL was chosen for its expressiveness and familiarity among developers, but it is only used for its syntax; the Nav Schema Architecture (NSA) does not use the GraphQL runtime.

Using GraphQL queries allows a contract developer to describe both the data model and message format at the same time, rather than needing two sets of semantics. This is useful when an attribute may be optional on the underlying data model, but required when that model is used in a specific message.

Read More on InfoQ