Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Expose Schema class for runtime metadata #75

Open
timkendall opened this issue Sep 28, 2021 · 0 comments
Open

Expose Schema class for runtime metadata #75

timkendall opened this issue Sep 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@timkendall
Copy link
Owner

We should implement the beginnings of schema definition support by code-generating a Schema class that exposes the following static properties seen in the example.

Runtime clients can use the metadata properties provided for instrumenting themselves with runtime metrics.

Example:

import { Schema } from './my-api'

// get the derived semantic version of the schema
Schema.VERSION // "1.0.1"

// get the sha256 of the schema SDL
Schema.SHA256 // "de8bcbe25b742e187385061f9af26ce061122a87ef9272d1b7e1ddd3e75f1d5f"
@timkendall timkendall added the enhancement New feature or request label Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant