G.apex

  • Docs
  • Tutorials
Docs Menu
  • G.apex Core
    • Parameters
    • Default Value
    • Alias
    • Fragment
    • Variable
    • Directive
  • Editor
  • Methods
    • Global
    • Schema
    • Data Type
    • Resolver
    • Directive

Schema Guide

Schema

Constructor

G.Schema schema = new G.Schema();

add

Add a root object type

new G.Schema()
    .add(new G.ObjectType('Book'));

describe

Describe the schema

Map data = new G.Schema.describe();
// { 'query' => 'Query' }

Contribute on Github! Edit this section.