@semantic directive
The @semantic directive returns the data defined in the schema definitions
Examples
- Content
-
{ "Page": { "content": "test content" } } - Model
-
type Page { semanticData : SemanticProperty @semantic(prefix: "P" schema : "http://schema.org") } - Query
-
getContent() { semanticData { prefix schema } } - Result
-
{ "data": { "semanticData": { "prefix": "P", "schema": "http://schema.org" } } }