Class: ForestAdminDatasourceGraphqlHasura::Introspection::Polymorphic
- Inherits:
-
Struct
- Object
- Struct
- ForestAdminDatasourceGraphqlHasura::Introspection::Polymorphic
- Defined in:
- lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb
Overview
targets maps the value stored in the type column to its table:
{ 'Transfer' => { table: 'transfers', hasura_field: 'transfer', primary_key: 'id' } }
Instance Attribute Summary collapse
-
#foreign_key ⇒ Object
Returns the value of attribute foreign_key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#targets ⇒ Object
Returns the value of attribute targets.
-
#type_field ⇒ Object
Returns the value of attribute type_field.
Instance Attribute Details
#foreign_key ⇒ Object
Returns the value of attribute foreign_key
22 23 24 |
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22 def foreign_key @foreign_key end |
#name ⇒ Object
Returns the value of attribute name
22 23 24 |
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22 def name @name end |
#targets ⇒ Object
Returns the value of attribute targets
22 23 24 |
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22 def targets @targets end |
#type_field ⇒ Object
Returns the value of attribute type_field
22 23 24 |
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22 def type_field @type_field end |