G.apex

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

Global Guide

Global

execute

Execute query on the schema

G.Schema schema = new G.Schema();
Object data = G.execute(schema, query);
MethodDescription
G.execute(Schema, String)Execute with schema and query
G.execute(Schema, Map)Execute with schema and query data
G.execute(String)Execute with query
G.execute(Map)Execute with query data

getObjectType

Get the registered object type

G.ObjectType objectType = G.getObjectType('Book');

describe

Describe the given object type by name Return the description of the schema if no object type given

Map result = G.describe('Book');

registerDirective

Register a custom direcitve

G.registerDirective(new MyCustomDirective());

Contribute on Github! Edit this section.