Class: ForestAdminDatasourceGraphqlHasura::Introspection::Polymorphic

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#foreign_keyObject

Returns the value of attribute foreign_key

Returns:

  • (Object)

    the current value of foreign_key



22
23
24
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22

def foreign_key
  @foreign_key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



22
23
24
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22

def name
  @name
end

#targetsObject

Returns the value of attribute targets

Returns:

  • (Object)

    the current value of targets



22
23
24
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22

def targets
  @targets
end

#type_fieldObject

Returns the value of attribute type_field

Returns:

  • (Object)

    the current value of type_field



22
23
24
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 22

def type_field
  @type_field
end