Azure / data-api-builder

Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
https://aka.ms/dab/docs
MIT License
947 stars 196 forks source link

Support Relay GraphQL standard #965

Open yorek opened 2 years ago

yorek commented 2 years ago

Summary

Add support for the Relay GraphQL standard

Motivation

Relay provides quite a lot of useful features to front-developers and given that fact that it is almost a de-facto standard, it means many libraries can provide implementation so that its usage can be ever easier. This is expected to drive adoption of tools like DAB.

Functional Specifications

Relay is based on two core GraphQL "best practitices" that needs to be implemented in order to support Relay:

more details on the Relay site:

It should be possible to decide if to generate a Relay-compatible GraphQL schema or use the default one provided by Data API Builder, but setting a dedicated configuration option (in the runtime section) in the configuration file.

alloy commented 2 years ago

An important part of this will be to stop referring to it as something that is for Relay. These are best-practices for any application/client that uses GraphQL as per its original data-driven UI intent.