Metadata support for schema type definitions
See original GitHub issueAs far as I see there is currently no support to add metadata to a schema definition.
Having a means to specify metadata on the various objects in graphql.schema
package would allow additional server-side processing logic to be based on it.
I would like to propose adding Builder.metadata(String, Object)
and Builder.metadata(Map<String, Object> metadata)
methods to the various builder classes (and constructors), and having it available in data fetchers and type resolvers.
(Maybe instead of a Map<String, Object>
the metadata could also be defined as a custom GraphQL introspection type __METADATA
)
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (15 by maintainers)
Top Results From Across the Web
Metadata for Data Management: A Tutorial: Standards/Schema
This metadata schema is for ecological data. EML is implemented as a series of XML document types that can by used in a...
Read more >Metadata Schema - an overview | ScienceDirect Topics
Data dictionary : A formal document describing the metadata schema for a particular collection, defining each field, how data in each field is...
Read more >Metadata schemas | Adobe Experience Manager
Metadata schema defines the layout of the properties page and the metadata properties displayed for assets. Learn how to create custom ...
Read more >Configuration schema/metadata - Drupal
Properties; Types supported in metadata files; Sequence definitions; Dynamic type references; Naming your schema files; Code style to use ...
Read more >Define Metadata Schema - Oracle Help Center
Metadata schema is a set of user-defined attributes that extend the system-defined normalized data. The normalized data is generated from the source document...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am closing this issue: We will not add completely arbitrary metadata to GraphQLSchema or Ast Nodes because it would break immutability.
But we recently added
Map<String, String>
to Field and will probably add it to every Node. See https://github.com/graphql-java/graphql-java/pull/1529Because that this PR is so old: if you have new input please open a new Issue. Thanks
Added a PR for this in #716