decorators
decorators
- Source:
- decorators/AdjacentSchema.js, line 71
Methods
(static) .AdjacentSchema(object, property, descriptor)
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
object |
mixed | the object on which to apply the decorator |
property |
String | the name of the object or property to |
descriptor |
Object | a standard Object.defineProperty style |
- Since:
- 2.1.0
- Source:
- decorators/AdjacentSchema.js, line 26
(static) .FileSchema(path, extension) → {mixed}
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | a relative or absolute path to the file containing |
extension |
String | the extension of the graphql schema file pointed |
Returns:
(
mixed
)
as per all class decorators, FileSchema
returns the
class object being modified
- Since:
- 2.3.0
- Source:
- decorators/FileSchema.js, line 26
(static) .Getters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method.s
- Source:
- decorators/ModelProperties.js, line 24
(static) .Properties(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
This method creates both getters and setters
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Since:
- 2.1.0
- Source:
- decorators/ModelProperties.js, line 140
(static) .Schema(schemaString)
This decorator allows you to specify the SCHEMA getter and associated
string as a parameter to the decorator itself. So, for example:
Parameters:
Name | Type | Description |
---|---|---|
schemaString |
String | a GraphQL IDL compliant string for defining a |
- Since:
- 2.2.0
- Source:
- decorators/Schema.js, line 18
(static) .Setters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the setters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which setters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Source:
- decorators/ModelProperties.js, line 82
decorators
- Source:
- decorators/FileSchema.js, line 69
Methods
(static) .AdjacentSchema(object, property, descriptor)
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
object |
mixed | the object on which to apply the decorator |
property |
String | the name of the object or property to |
descriptor |
Object | a standard Object.defineProperty style |
- Since:
- 2.1.0
- Source:
- decorators/AdjacentSchema.js, line 26
(static) .FileSchema(path, extension) → {mixed}
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | a relative or absolute path to the file containing |
extension |
String | the extension of the graphql schema file pointed |
Returns:
(
mixed
)
as per all class decorators, FileSchema
returns the
class object being modified
- Since:
- 2.3.0
- Source:
- decorators/FileSchema.js, line 26
(static) .Getters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method.s
- Source:
- decorators/ModelProperties.js, line 24
(static) .Properties(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
This method creates both getters and setters
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Since:
- 2.1.0
- Source:
- decorators/ModelProperties.js, line 140
(static) .Schema(schemaString)
This decorator allows you to specify the SCHEMA getter and associated
string as a parameter to the decorator itself. So, for example:
Parameters:
Name | Type | Description |
---|---|---|
schemaString |
String | a GraphQL IDL compliant string for defining a |
- Since:
- 2.2.0
- Source:
- decorators/Schema.js, line 18
(static) .Setters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the setters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which setters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Source:
- decorators/ModelProperties.js, line 82
decorators
- Source:
- decorators/ModelProperties.js, line 21
Methods
(static) .AdjacentSchema(object, property, descriptor)
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
object |
mixed | the object on which to apply the decorator |
property |
String | the name of the object or property to |
descriptor |
Object | a standard Object.defineProperty style |
- Since:
- 2.1.0
- Source:
- decorators/AdjacentSchema.js, line 26
(static) .FileSchema(path, extension) → {mixed}
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | a relative or absolute path to the file containing |
extension |
String | the extension of the graphql schema file pointed |
Returns:
(
mixed
)
as per all class decorators, FileSchema
returns the
class object being modified
- Since:
- 2.3.0
- Source:
- decorators/FileSchema.js, line 26
(static) .Getters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method.s
- Source:
- decorators/ModelProperties.js, line 24
(static) .Properties(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
This method creates both getters and setters
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Since:
- 2.1.0
- Source:
- decorators/ModelProperties.js, line 140
(static) .Schema(schemaString)
This decorator allows you to specify the SCHEMA getter and associated
string as a parameter to the decorator itself. So, for example:
Parameters:
Name | Type | Description |
---|---|---|
schemaString |
String | a GraphQL IDL compliant string for defining a |
- Since:
- 2.2.0
- Source:
- decorators/Schema.js, line 18
(static) .Setters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the setters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which setters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Source:
- decorators/ModelProperties.js, line 82
decorators
- Source:
- decorators/Schema.js, line 15
Methods
(static) .AdjacentSchema(object, property, descriptor)
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
object |
mixed | the object on which to apply the decorator |
property |
String | the name of the object or property to |
descriptor |
Object | a standard Object.defineProperty style |
- Since:
- 2.1.0
- Source:
- decorators/AdjacentSchema.js, line 26
(static) .FileSchema(path, extension) → {mixed}
A decorator that does three things. First it defines the
module() static method that is required when using adjacent
schema files. Secondly, it defines a SCHEMA getter that
returns GQLBase.ADJACENT_FILE
. Finally it sets a static
getter with the Symbol
, @adjacentSchema
so that other
can determine whether or not the decorator was used.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | a relative or absolute path to the file containing |
extension |
String | the extension of the graphql schema file pointed |
Returns:
(
mixed
)
as per all class decorators, FileSchema
returns the
class object being modified
- Since:
- 2.3.0
- Source:
- decorators/FileSchema.js, line 26
(static) .Getters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method.s
- Source:
- decorators/ModelProperties.js, line 24
(static) .Properties(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the getters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which getters should be injected.
This method creates both getters and setters
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Since:
- 2.1.0
- Source:
- decorators/ModelProperties.js, line 140
(static) .Schema(schemaString)
This decorator allows you to specify the SCHEMA getter and associated
string as a parameter to the decorator itself. So, for example:
Parameters:
Name | Type | Description |
---|---|---|
schemaString |
String | a GraphQL IDL compliant string for defining a |
- Since:
- 2.2.0
- Source:
- decorators/Schema.js, line 18
(static) .Setters(propertyNames) → {function}
When working with GQLBase
instances that expose properties
that have a 1:1 mapping to their own model property of the
same name, adding the setters manually can be annoying. This
takes an indeterminate amount of strings representing the
properties for which setters should be injected.
Parameters:
Name | Type | Description |
---|---|---|
propertyNames |
Array.<String> | if the model has 'name' and |
Returns:
(
function
)
a class decorator method
- Source:
- decorators/ModelProperties.js, line 82